hellock / icrawler

A multi-thread crawler framework with many builtin image crawlers provided.
http://icrawler.readthedocs.io/en/latest/
MIT License
857 stars 174 forks source link

How to change root_dir in storage argument? #61

Open tienthegainz opened 5 years ago

tienthegainz commented 5 years ago

I was try to change the root_dir by the following: google_crawler = GoogleImageCrawler( feeder_threads=1, parser_threads=1, downloader_threads=4, storage=storage) google_crawler.set_storage(new_storage) But it doesn't seem to work. Did I do it the wrong way?

thuan1412 commented 5 years ago

Set storage parameter in GoogleImageCrawler like this: storage={''root_idr': 'your_dir'} Hope this help!

tienthegainz commented 5 years ago

Set storage parameter in GoogleImageCrawler like this: storage={''root_idr': 'your_dir'} Hope this help!

You may not understand the problem I have. google_crawler.set_storage({''root_idr': 'your_new_dir'}) didn't work for me. How do you change the parameter?

thuan1412 commented 5 years ago

Does "didn't work for me" mean this code dose not create a directory for storing your images? Instead it create the "images" directory for storing images.