News-Collection

所属分类:Python工具库
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2019-12-11 08:08:26
上 传 者sh-1993
说明:  基于烧瓶的新闻收集网站。
(News collection website based on Flask.)

文件列表:
__init__.py (0, 2019-12-10)
app/ (0, 2019-12-10)
app/__init__.py (985, 2019-12-10)
app/auth/ (0, 2019-12-10)
app/auth/__init__.py (85, 2019-12-10)
app/auth/forms.py (3521, 2019-12-10)
app/auth/views.py (5693, 2019-12-10)
app/config.py (804, 2019-12-10)
app/decorators.py (501, 2019-12-10)
app/email.py (654, 2019-12-10)
app/main/ (0, 2019-12-10)
app/main/__init__.py (93, 2019-12-10)
app/main/errors.py (254, 2019-12-10)
app/main/forms.py (650, 2019-12-10)
app/main/views.py (2420, 2019-12-10)
app/models.py (6338, 2019-12-10)
app/static/ (0, 2019-12-10)
app/static/baijia.css (11546, 2019-12-10)
app/static/favicon.ico (1150, 2019-12-10)
app/static/logo.ico (1150, 2019-12-10)
app/static/logo.png (12413, 2019-12-10)
app/static/styles.css (1856, 2019-12-10)
app/templates/ (0, 2019-12-10)
app/templates/404.html (122, 2019-12-10)
app/templates/500.html (127, 2019-12-10)
app/templates/_macros.html (1231, 2019-12-10)
app/templates/_posts.html (1176, 2019-12-10)
app/templates/auth/ (0, 2019-12-10)
app/templates/auth/change_email.html (315, 2019-12-10)
app/templates/auth/change_password.html (320, 2019-12-10)
app/templates/auth/email/ (0, 2019-12-10)
app/templates/auth/email/change_email.html (463, 2019-12-10)
app/templates/auth/email/change_email.txt (217, 2019-12-10)
app/templates/auth/email/confirm.html (384, 2019-12-10)
app/templates/auth/email/confirm.txt (310, 2019-12-10)
app/templates/auth/email/reset_password.html (487, 2019-12-10)
app/templates/auth/email/reset_password.txt (300, 2019-12-10)
app/templates/auth/login.html (619, 2019-12-10)
... ...

# News-Collection ## Basic information A website collects and shows news from the Internet, based on Flask. Deployed on AWS, address: https://news.jianyang995.com/ ## Support 1. Categoried news 2. User management (register, log in, password/email update, email verification, etc.) 3. Column customization 4. Atuo updatied news (everyday) ## Requirements 1. MySQL 2. Python 3.6.x ## How to run ### Configuration Change configuration in ```app/config.py``` 1. Change email setting: my_email, MAIL_USERNAME, MAIL_SERVER, MAIL_PASSWORD => It is similar with using a third party mail client to control your mailbox and then send emails. 2. Change databse setting: db_cfg (user, passwd) => If you want to use Chinese in database, you need to change the character set of MySQL to utf8. ### Start server 1. Install requirements: ```pip install -r requests.txt``` 2. Create table in database: run ```python manage.py deploy``` in root directory 3. Collect news from Internet: run ```python toutiao.py&``` in directory ```spider``` 4. Run the server: run ```python manage.py runserver``` in root directory 5. Open link http://127.0.0.1:5000/ ## Demo ### Homepage ![alt homepage](https://raw.githubusercontent.com/yangjufo/News-Collection/master/readme/homepage.png) ### Log in ![alt login page](https://raw.githubusercontent.com/yangjufo/News-Collection/master/readme/login.png)

近期下载者

相关文件


收藏者