mugaas / furry-couscous

A place to learn python
1 stars 0 forks source link

initial commit of immage retriever #5

Closed mugaas closed 6 years ago

mugaas commented 6 years ago

Can test it by running the script: python c:/Users/eric/Documents/GitHub/furry-couscous/couscous-core/image_retriever.py -i https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png

will create a /temp directory to save the image in, unless a specific directory is passed in with a -d param:

python c:/Users/eric/Documents/GitHub/furry-couscous/couscous-core/image_retriever.py -i https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png -d '/my/temp'

currently the image name is just parsed off the end of the given url

rustydahlin commented 6 years ago

Looks good to me. I'd like to add an option to also screenshot a webpage, if the URL does not end in .png, .jpeg, .gif, etc...