question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

your_img_dir of icrawler doesn't work in my code.

See original GitHub issue
from icrawler.builtin import GoogleImageCrawler

google_crawler = GoogleImageCrawler(
    feeder_threads=1,
    parser_threads=1,
    downloader_threads=4,
    storage={'root_dir': 'C:\\Users\Park\PycharmProjects\\test_img'})
filters = dict(
    date=((2017, 1, 1), (2020, 3, 1)))

google_crawler.crawl(keyword='cat', filters=filters, offset=0, max_num=30,
                     max_size=None, file_idx_offset=0)

that is my code. i was looking for how to change the ‘your_img_dir’ arg. and someone said that just put my dir for saving the downloaded image from google. and then dont change ‘root_dir’. So i just follow that.

My code show me 2020-03-17 16:04:46,173 - INFO - icrawler.crawler - Crawling task done! but there is no downloaded image at ‘C:\Users\Park\PycharmProjects\test_img’

there is any problem? or Am i doing wrong way?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
wutchycommented, Mar 17, 2020

I encountered the same problem. #65 maybe answer the problem.

0reactions
ZhiyuanChencommented, Oct 26, 2020

Resolved in #84

Read more comments on GitHub >

github_iconTop Results From Across the Web

Icrawler works only 1 time after then it doesn't work
so i just follow doc how to use Icrawler libarary. My code is as follow from icrawler.builtin import GoogleImageCrawler import os save_dir =...
Read more >
How to use the icrawler.builtin.GoogleImageCrawler function ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >
icrawler Documentation - Read the Docs
color_codes – A comma-delimited list of color codes, which filters the results by your chosen color(s). Please see any Flickr search page ...
Read more >
Built-in crawlers — icrawler 0.6.6 documentation
from icrawler.builtin import BaiduImageCrawler, BingImageCrawler, ... list of color codes, which filters the results by your chosen color(s).
Read more >
custom image dataset using icrawler - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from No ... But there might be a situation where you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found