GithubHelp home page GithubHelp logo

losenine / toplist-python Goto Github PK

View Code? Open in Web Editor NEW
67.0 3.0 28.0 253 KB

今日热榜项目TopList的Python实现,异步爬取微博热榜,知乎,V2EX,GIthub,通过Flask展示。

Python 45.45% CSS 30.50% HTML 24.05%
python hot spider hotlist today-s-hot-list

toplist-python's Introduction

pyTopList

今日热榜项目TopList的Python实现,灵感来源: 今日热榜tophubs/TopList,一个获取各大热门网站热门头条的聚合网站,使用Go语言编写,多协程异步快速抓取信息,预览:https://www.printf520.com/hot.html

用Python复现Go语言的TopList,使用python语言编写的异步爬虫

1.png

目录说明

TopList/
├── App
|   |——__init__.py  项目初始化配置app
│   ├── GetHot.py   爬取热榜的爬虫程序
│   └── models.py   SQLALchemy数据库模型
├── Config
│   └── config.py   Flask项目的配置文件
├── static 静态文件
│   ├── css   
|   ├── fonts
|   ├── imgs 
│   └── js
├── templates 前端模板文件
│   └── index.html
├── test 写测试的
│   └── get.py
├── Server.py 项目的启动入口
└── README.md

安装教程

  1. 创建MYSQL数据库,如 toplist作为数据库名

  2. 编辑文件 Config/cofig.py

  SQLALCHEMY_DATABASE_URI='mysql://root:root@localhost/toplist' 连接你的数据库
  1. 运行Server.py后,运行爬虫程序App/GetHot.py爬取各大热榜

  2. 浏览测试

    • 打开http://127.0.0.1:8080/

toplist-python's People

Contributors

losenine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

toplist-python's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.