-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bb7cd0
commit 2ecd721
Showing
22 changed files
with
98 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
# 基于flask+requests 小说爬取 | ||
# 基于flask+requests个人博客系统 | ||
|
||
## 1.最终实现效果如下图: | ||
## 1.基本环境搭建 | ||
|
||
### 首页显示 | ||
![](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418232426530-100667854.png) | ||
```python | ||
1.本人使用的系统是 Centos7 | ||
2.flask环境系统部署 | ||
2.1 安装python3.6 | ||
2.2 安装pip工具 | ||
2.3 pip install -r requirements.txt # 根据文件进行包安装 | ||
3.安装mysql数据库 使用的是mysql 5.7 charset=utf8 | ||
4.建立相关数据库及表 | ||
``` | ||
|
||
可以输入查询小说,如果小说不存在,就调用后台爬虫程序下载 | ||
## 2.个人博客首页 | ||
|
||
![](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418232908530-1212209202.png) | ||
### 2.1 可以发布一些自己写的文章 | ||
|
||
点开具体页面显示,小说章节列表,对于每个章节,如果本地没有就直接下载,可以点开具体章节开心的阅读,而没有广告,是的没有广告,纯净的 | ||
![写文章](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180420101341637-1481677605.png) | ||
|
||
### 2.2 | ||
|
||
![文章显示](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180420101603138-7020402.png) | ||
|
||
## 3.小说爬取展示 | ||
|
||
### 最终实现效果如下图: | ||
|
||
#### 首页显示 | ||
|
||
![](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418233105974-334389035.png) | ||
|
||
![首页显示](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418232426530-100667854.png) | ||
|
||
可以输入查询小说,如果小说不存在,就调用后台爬虫程序下载 | ||
|
||
![章节列表](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418232908530-1212209202.png) | ||
|
||
点开具体页面显示,小说章节列表,对于每个章节,如果本地没有就直接下载,可以点开具体章节开心的阅读,而没有广告,是的没有广告,纯净的 | ||
|
||
![章节内容](https://images2018.cnblogs.com/blog/1339195/201804/1339195-20180418233105974-334389035.png) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
alembic==0.9.8 | ||
astroid==1.6.3 | ||
beautifulsoup4==4.6.0 | ||
blinker==1.4 | ||
bs4==0.0.1 | ||
certifi==2018.1.18 | ||
chardet==3.0.4 | ||
click==6.7 | ||
decorator==4.2.1 | ||
dominate==2.3.1 | ||
Flask==0.12.2 | ||
Flask-Bootstrap==3.3.7.1 | ||
Flask-Failsafe==0.2 | ||
Flask-FlatPages==0.6 | ||
Flask-Login==0.4.1 | ||
Flask-Mail==0.9.1 | ||
Flask-Markdown==0.3 | ||
Flask-Migrate==2.1.1 | ||
Flask-Script==2.0.6 | ||
Flask-SQLAlchemy==2.3.2 | ||
Flask-WTF==0.14.2 | ||
gunicorn==19.7.1 | ||
html5lib==1.0.1 | ||
idna==2.6 | ||
ipython==6.2.1 | ||
ipython-genutils==0.2.0 | ||
isort==4.3.4 | ||
itsdangerous==0.24 | ||
jedi==0.11.1 | ||
Jinja2==2.10 | ||
lazy-object-proxy==1.3.1 | ||
lxml==4.2.1 | ||
Mako==1.0.7 | ||
Markdown==2.6.11 | ||
MarkupSafe==1.0 | ||
mccabe==0.6.1 | ||
parso==0.1.1 | ||
pexpect==4.4.0 | ||
pickleshare==0.7.4 | ||
prompt-toolkit==1.0.15 | ||
ptyprocess==0.5.2 | ||
pudb==2017.1.4 | ||
Pygments==2.2.0 | ||
pylint==1.8.4 | ||
PyMySQL==0.8.0 | ||
python-dateutil==2.6.1 | ||
python-editor==1.0.3 | ||
PyYAML==3.12 | ||
redis==2.10.6 | ||
requests==2.18.4 | ||
simplegeneric==0.8.1 | ||
six==1.11.0 | ||
SQLAlchemy==1.2.4 | ||
traitlets==4.3.2 | ||
urllib3==1.22 | ||
urwid==2.0.1 | ||
visitor==0.1.3 | ||
wcwidth==0.1.7 | ||
webencodings==0.5.1 | ||
Werkzeug==0.14.1 | ||
wrapt==1.10.11 | ||
WTForms==2.1 |