Skip to content

Commit 45df524

Browse files
author
XBCJWen
committed
Update Packages 2021-03-12🎉
1 parent 5eeff37 commit 45df524

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# **Python3Webcrawler**
2-
## **[哔哩哔哩作者:-相依-](https://space.bilibili.com/343154012)**  **UPDATE 2021-01-18**
2+
## **[哔哩哔哩作者:-相依-](https://space.bilibili.com/343154012)**  **UPDATE 2021-03-12**
33
> **精心挑选了几个爬虫,给大家在学Scrapy框架之前打基础。**
44
>> **该项目仅限学习交流,请勿用于商业用途,如有侵权,请联系删除。**
55
66
|**程序依赖**|**安装指令**|**项目使用版本**|
77
|:----:|:--------:|:--------:|
88
|**lxml**|**pip install lxml**|**4.6.2**|
9-
|**aiohttp**|**pip install aiohttp**|**3.6.2**|
10-
|**requests**|**pip install requests**|**2.24.0**|
9+
|**aiohttp**|**pip install aiohttp**|**3.7.4**|
10+
|**requests**|**pip install requests**|**2.25.1**|
1111
|**PyExecJS**|**pip install PyExecJS**|**1.5.1**|
12-
|**sqlalchemy**|**pip install sqlalchemy**|**1.3.18**|
13-
|**beautifulsoup4**|**pip install beautifulsoup4**|**4.9.1**|
14-
|**mysqlconnector**|**pip install mysql-connector-python**|**8.0.21**|
12+
|**sqlalchemy**|**pip install sqlalchemy**|**1.3.23**|
13+
|**beautifulsoup4**|**pip install beautifulsoup4**|**4.9.3**|
14+
|**mysqlconnector**|**pip install mysql-connector-python**|**8.0.23**|
1515

1616
* ### **京东   [官网地址](https://item.jd.com)**
1717
* ### **网易   [官网地址](https://www.163.com/)**

requirements.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
aiohttp==3.6.2
1+
aiohttp==3.7.4
22
async-timeout==3.0.1
3-
attrs==19.3.0
4-
beautifulsoup4==4.9.1
5-
certifi==2020.6.20
3+
attrs==20.3.0
4+
beautifulsoup4==4.9.3
5+
certifi==2020.12.5
66
chardet==3.0.4
77
idna==2.10
88
lxml==4.6.2
9-
multidict==4.7.6
10-
mysql-connector-python==8.0.21
11-
protobuf==3.12.2
9+
multidict==5.1.0
10+
mysql-connector-python==8.0.23
11+
protobuf==3.15.6
1212
PyExecJS==1.5.1
13-
requests==2.24.0
13+
requests==2.25.1
1414
six==1.15.0
15-
soupsieve==2.0.1
16-
SQLAlchemy==1.3.18
17-
typing-extensions==3.7.4.2
18-
urllib3==1.25.10
19-
yarl==1.5.0
15+
soupsieve==2.2
16+
SQLAlchemy==1.3.23
17+
typing-extensions==3.7.4.3
18+
urllib3==1.26.3
19+
yarl==1.6.3

百度图片/crawl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
headers = {
1010
'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',
11-
'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'
11+
'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',
12+
#参考链接:https://image.baidu.com/
13+
#请在此处填写你的 Cookie
1214
}
1315

1416
tasks = []

豆瓣读书/boook_db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Book(Base):
2323
pl = Column('pl',String(10))
2424
introduce = Column('introduce',Text())
2525

26+
Base.metadata.create_all(engine)
2627

2728
session = sessionmaker(engine)
2829
sess=session()

0 commit comments

Comments
 (0)