爬取 GitHub Trending
页面每天最活跃的项目,并自动提交到你的仓库
Scrape the most excited repos in Github Trending everyday, and automaticly commit to your GitHub repo.
- git
- python 2.x, 3.x
- pyquery & requests
- Install
git
& config it
# install git (linux)
$ yum install git
# config your git
$ git config --global user.name "username"
$ git config --global user.email "[email protected]"
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
-
Install python
-
Fork this repo
-
Clone your repo and Install
pyquery
&requests
$ git clone https://github.com/yourusername/github-trending.git
$ cd github-trending
$ pip install -r requirements.txt
- Run
nohup python -u run.py > out.log 2>&1 &
Note: 解决
lxml
安装不上的方法
# ubuntu 14.04
sudo apt-get build-dep python3-lxml
sudo apt-get install libxml2-dev libxslt-dev python-dev
See it on stackoverflow
josephyzhou/github-trending (Go Version)
Released under the MIT License.