Skip to content

Commit

Permalink
bugfix: KeyError:'data' when using BaiduImageCrawler
Browse files Browse the repository at this point in the history
  • Loading branch information
serser authored and ZhiyuanChen committed Oct 16, 2024
1 parent 4273064 commit 2c3f6fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icrawler/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def set_session(self, headers=None):
"""
if headers is None:
headers = {
"Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
" AppleWebKit/537.36 (KHTML, like Gecko) "
Expand Down

0 comments on commit 2c3f6fd

Please sign in to comment.