GitBucket
Pull requests
Issues
Snippets
Sign in
ml2024
/
getimages.py
Fork
0
Created at Thu Jun 27 11:40:23 JST 2024
Download ZIP
HTTP
Embed
Embed this snippet in your website.
HTTP
Clone with Git using the repository's web address.
Code
Revision
Forks
takane
revised this
on 27 Jun 2024
efb5c40
getimages.py
# pip install icrawler from icrawler.builtin import BingImageCrawler crawler = BingImageCrawler(storage = {'root_dir' : './image/tflask'}) crawler.crawl(keyword = '三角フラスコ', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/beaker'}) crawler.crawl(keyword = 'ビーカー', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/funnel'}) crawler.crawl(keyword = 'ろうと', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/burette'}) crawler.crawl(keyword = 'ビュレット', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/kpipette'}) crawler.crawl(keyword = 'コマゴメピペット', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/test_tube'}) crawler.crawl(keyword = '試験管', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/petri_dish'}) crawler.crawl(keyword = 'ペトリ皿', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/eggplant_flask'}) crawler.crawl(keyword = 'ナスフラスコ', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/graduated_cylinder'}) crawler.crawl(keyword = 'メスシリンダー', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/glass_rod'}) crawler.crawl(keyword = 'ガラス棒', max_num = 30) crawler = BingImageCrawler(storage = {'root_dir' : './image/volumetric_flask'}) crawler.crawl(keyword = 'メスフラスコ', max_num = 30)