hellock / hellock/icrawler

KeyError:'data' when using BaiduImageCrawler

Open
#103 6 comments 1 reaction 0 assignees View on GitHub
bug help wanted
Dominant language
Python
Stars
933
Forks
181
PR merge metrics
No merged PRs in 30d

Description

```
Traceback (most recent call last):
File "/home/minami/anaconda3/envs/python_function/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "anaconda3/envs/python_function/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "anaconda3/envs/python_function/lib/python3.7/site-packages/icrawler/parser.py", line 104, in worker_exec
for task in self.parse(response, **kwargs):
File "anaconda3/envs/python_function/lib/python3.7/site-packages/icrawler/builtin/baidu.py", line 120, in parse
for item in content['data']:
KeyError: 'data'
```
Hi there!
I met this error when using Baidu. Google and Bing are fine.
Is there anything that can fix this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.