A website collects and shows news from the Internet, based on Flask.
Deployed on AWS, address: https://news.jianyang995.com/
- Categoried news
- User management (register, log in, password/email update, email verification, etc.)
- Column customization
- Atuo updatied news (everyday)
- MySQL
- Python 3.6.x
Change configuration in app/config.py
- 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.
- 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.
- Install requirements:
pip install -r requests.txt
- Create table in database: run
python manage.py deploy
in root directory - Collect news from Internet: run
python toutiao.py&
in directoryspider
- Run the server: run
python manage.py runserver
in root directory - Open link http://127.0.0.1:5000/