github-popular

项目地址
https://github.com/guanpengchn/github-popular

简介

该项目爬取了github中流行的项目,并进行语言排名和图标分析,供开源爱好者参考

环境依赖

  • python 3.6.1
  • mongo 3.4.7

相关技术

  • scrapy
  • flask
  • Material Design Lite
  • vue

部署

安装python环境
http://www.runoob.com/python3/python3-tutorial.html

安装mongodb环境,可参考以下链接,使用默认端口27017
http://www.runoob.com/mongodb/mongodb-tutorial.html

git clone https://github.com/guanpengchn/github-popular.git
pip install -r requirements.txt
python app.py

访问浏览器
http://locolhost:5000

目录结构

├── README.md                   // help
├── app.py                      // web入口
├── requirements.txt            // python相关依赖
├── scrapy.cfg                  // scrapy配置文件
├── startSpider.py              // 开启爬虫脚本
├── templates                   // 页面模板
├── static                      // 静态资源
├── popular                     // 爬虫
└── doc                         // 相关文档

效果

mongodb中会生成
db名为popular,collection名为trending的数据
存储了从
https://github.com/trending
获取的数据
最后在网页上进行分析显示

image

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值