Using built-in crawlers is very simple. A minimal example is shown as follows.

50

from icrawler.builtin import GoogleImageCrawler

google_crawler = GoogleImageCrawler(storage={'root_dir': 'your_image_dir'})
google_crawler.crawl(keyword='cat', max_num=100)

Comments

Submit
0 Comments