Skip to content

Commit 5e1d803

Browse files
author
mochazi
committed
Repair Packages 2021-03-12🎉
1 parent 31e94a7 commit 5e1d803

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ idna==2.10
88
lxml==4.6.2
99
multidict==5.1.0
1010
mysql-connector-python==8.0.23
11-
protobuf==3.15.6
11+
protobuf==3.13.0
1212
PyExecJS==1.5.1
1313
requests==2.25.1
1414
six==1.15.0

百度图片/crawl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
from concurrent.futures import ThreadPoolExecutor
88

99
headers = {
10+
'Accept':'text/plain, */*; q=0.01',
11+
'Accept-Encoding':'gzip, deflate, br',
12+
'Accept-Language':'zh-CN,zh;q=0.9,en;q=0.8',
1013
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36',
1114
'Referer':'https://image.baidu.com/search/index?tn=baiduimage&ipn=r&ct=201326592&cl=2&lm=-1&st=-1&fm=result&fr=&sf=1&pv=&ic=0&nc=1&z=&hd=&latest=&copyright=&se=1&showtab=0&fb=0&width=&height=&face=0&istype=2&ie=utf-8&sid=&word=%E5%88%9D%E9%9F%B3%E6%9C%AA%E6%9D%A5',
1215
#参考链接:https://image.baidu.com/

0 commit comments

Comments
 (0)