scans web pages for images and displays them in a terminal
tool is called from the command line and does this:
- get some list of image urls from the internet
- picks a random image from list
- displays that image to the terminal using shitty color terminal graphics
You have until lunchtime of next Friday to satisfy these requirements. Probably not enough time to finish unless you suddenly develop super coding skills. At Friday lunch, if the project is not complete, I will reveal my implementation for you to take hints from.
Teaches: git, loosely defined technical project, http crawling, unix executables, technical writing
- install python 3.4 or greater (if not already installed) - https://realpython.com/installing-python/
- install imagescraper on the command line, typing: pip install ImageScraper
- download image-cmd.py script and store it in an empty working directory
- using a terminal, navigate to the directory you have stored image-cmd.py in
- type 'python image-cmd.py' into the command line
- a url will be requested from the user, and the output will be provided in the terminal