Skip to content

Commit

Permalink
delete __pycache__
Browse files Browse the repository at this point in the history
  • Loading branch information
longzx-9527 committed Apr 20, 2018
1 parent 0bb7cd0 commit 2ecd721
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 20 deletions.
41 changes: 31 additions & 10 deletions README.md
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 modified __pycache__/config.cpython-36.pyc
Binary file not shown.
Binary file removed app/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed app/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file removed app/__pycache__/mylogger.cpython-36.pyc
Binary file not shown.
Binary file removed app/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file removed app/fiction/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed app/fiction/__pycache__/spider_tools.cpython-36.pyc
Binary file not shown.
Binary file removed app/fiction/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file removed app/main/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed app/main/__pycache__/errors.cpython-36.pyc
Binary file not shown.
Binary file removed app/main/__pycache__/forms.cpython-36.pyc
Binary file not shown.
Binary file removed app/main/__pycache__/views.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion app/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ol class="breadcrumb">
<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
<li><a href="#">技术杂谈</a></li>
<li><a href="#">人生感悟</a></li>
<li class="active">{{page.title}}</li>
</ol>

Expand Down
13 changes: 4 additions & 9 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@
个人爱好 <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/book/">小说频道</a></li>
<li><a href="#">EJB</a></li>
<li><a href="#">Jasper Report</a></li>
<li class="divider"></li>
<li><a href="#">分离的链接</a></li>
<li class="divider"></li>
<li><a href="#">另一个分离的链接</a></li>
<li><a href="{{url_for('fiction.book_index')}}">小说频道</a></li>
<li><a href="#">技术文章下载</a></li>
</ul>
</li>
<li><a href="/book/">小说频道</a></li>
<li><a href="{{url_for('fiction.book_index')}}">小说频道</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/wrarticle/"><span class="glyphicon glyphicon-user"></span>写文章</a></li>
<li><a href="{{url_for('main.wrarticle')}}"><span class="glyphicon glyphicon-user"></span>写文章</a></li>
{% if user %}
<li><h3>Hello,{{user.name}}</h3></li>
{% else %}
Expand Down
Binary file removed app/xiaoshuo/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed app/xiaoshuo/__pycache__/config.cpython-36.pyc
Binary file not shown.
Binary file removed app/xiaoshuo/__pycache__/mylogger.cpython-36.pyc
Binary file not shown.
Binary file removed app/xiaoshuo/__pycache__/spider_tools.cpython-36.pyc
Binary file not shown.
Binary file not shown.
62 changes: 62 additions & 0 deletions requirements.text
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

0 comments on commit 2ecd721

Please sign in to comment.