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

KeyError: 'm' #110

Open Vikram12301 opened 1 year ago

Vikram12301 commented 1 year ago
bing_crawler = BingImageCrawler(storage={'root_dir': 'imgs'})
bing_crawler.crawl(keyword='cat', filters=None, offset=0, max_num=100)

On running the above code, I am getting this error

File "C:\Users\dell.conda\envs\DataCollection\lib\threading.py", line 953, in run self._target(*self._args, self._kwargs) File "C:\Users\dell.conda\envs\DataCollection\lib\site-packages\icrawler\parser.py", line 104, in worker_exec for task in self.parse(response, kwargs): File "C:\Users\dell.conda\envs\DataCollection\lib\site-packages\icrawler\builtin\bing.py", line 125, in parse href_str = html.unescape(div.a['m']) File "C:\Users\dell.conda\envs\DataCollection\lib\site-packages\bs4\element.py", line 1573, in getitem return self.attrs[key] KeyError: 'm'

ZhiyuanChen commented 1 year ago

Could you please confirm if the error still exists?