sananth12 / ImageScraper

:scissors: High performance, multi-threaded image scraper
GNU General Public License v3.0
763 stars 101 forks source link

Using image_search in python scripting #92

Closed pybern closed 7 years ago

pybern commented 8 years ago

Ok great. So I've downloaded a module called imagescraper from

Pip install ImageScraper When running in console

image-scraper 'insert url' Works just fine. However following the documentation when I ran in jupyter notebook.

Import image_scraper

image_scraper.search_images('insert url') I'm returned a (0, 0) tuple.

I've searched my working directory where my images suppose to be but it's not there.

My curiosity is no longer with scraping images. But I really just wanna work it out and figure why it's no working in my Python book.

ssundarraj commented 8 years ago

@n00bc0der, are you able to run it in a python shell? Also, you the function name is scrape_images not search_images.

The newer versions have removed the scrape_image. I will update the readme to reflect this. Thanks for pointing it out.

AFAgarap commented 8 years ago

@ssundarraj May I suggest? I think the code

import image_scraper image_scraper.scrape_images(URL)

should just be removed from the README.md. So, as to avoid the confusion for the users of your good app. :)

ssundarraj commented 8 years ago

@AFAgarap We have mentioned that it is deprecated, but I will go ahead and make it more clear. Thanks.

sananth12 commented 8 years ago

The functionality you are looking for is still available in a previous (deprecated) version. https://github.com/sananth12/ImageScraper/tree/2.0.6

AFAgarap commented 8 years ago

@ssundarraj Yes, thank you as well. :)