Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mingri31164/python-reptile
python豆瓣电影数据爬虫+可视化分析项目
https://github.com/mingri31164/python-reptile
python-flask redis
Last synced: 3 days ago
JSON representation
python豆瓣电影数据爬虫+可视化分析项目
- Host: GitHub
- URL: https://github.com/mingri31164/python-reptile
- Owner: mingri31164
- Created: 2024-10-30T21:00:22.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-21T03:43:43.000Z (13 days ago)
- Last Synced: 2024-12-21T04:24:30.234Z (13 days ago)
- Topics: python-flask, redis
- Language: HTML
- Homepage:
- Size: 5.18 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 部署说明
1. 创建mysql数据库 `douban`,执行doc/`db_douban.sql`
2. 请分别修改db_query.py和main_async.py中的数据库连接信息
3. 首次运行请删除`movie_data.csv`和`page_progress.json`两个文件
4. 运行`main.py`或者异步的`main_async.py`,异步运行会更快,要获取的电影分类和页码请在程序中自行调整:
![alt text](doc/image.png)
5. 爬取完成后,运行`app.py`,然后浏览器访问`http://127.0.0.1:5000/`,用户名密码:admin/123## [首页]
![alt text](doc/image-2.png)## [电影清单]
![alt text](doc/image-3.png)