Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'm' #110

Open
Vikram12301 opened this issue Apr 25, 2023 · 1 comment
Open

KeyError: 'm' #110

Vikram12301 opened this issue Apr 25, 2023 · 1 comment

Comments

@Vikram12301
Copy link

Vikram12301 commented Apr 25, 2023

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
Copy link
Collaborator

Could you please confirm if the error still exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants