icrawler icon indicating copy to clipboard operation
icrawler copied to clipboard

How to change root_dir in storage argument?

Open tienthegainz opened this issue 6 years ago • 3 comments

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?

tienthegainz avatar Sep 04 '19 03:09 tienthegainz

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

thuan1412 avatar Sep 05 '19 08:09 thuan1412

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?

tienthegainz avatar Sep 05 '19 09:09 tienthegainz

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.

thuan1412 avatar Sep 05 '19 09:09 thuan1412