karpathy/find-birds
关于
根据你关注的人所关注的账号,找出你在 Twitter 上可以关注的人
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文find-birds

The goal is to find people on Twitter ("birds", haha) who you should follow.
The source of signal is that the people you follow follow other people you probably should follow but so far do not.
installation
The code base uses tweepy library to interact with the Twitter API:
pip install -r requirements.txt
You will have to set up oauth access to Twitter API. Follow this great tutorial to set that up. You'll then want to enter your consumer key, consumer secret, access token, access token secret as 4 lines in a file twitter.txt in the root directory of this project.
usage
The typical usage for me (username "karpathy") looks as follows:
- Run
fetch.py karpathy --depth 1, which fetches information about who I follow, and who everyone I follow follows. Everything is saved to a super lightweight "database" as pickle files. This part can take many days because the Twitter API access is heavily rate limited. For example, I follow about 400 people and it took about 2 weeks to download all of the information. Therefore, I'd run this script in a screen session and come back later. - Run
report.py --from-user karpathy, which finds the most commonly occurring people and then renders the results into anhtmlpage (by defaultreport.html), for pretty consumption. You'll be able to use this script before thefetch.pyscript above fully finishes to see preliminary results if you like.
These two scripts have some more bells and whistles - don't be afraid to read & modify the code, it's relatively short.
ugh, so much work
If we are very good friends I'd be happy to run all of this code for you on a first-come-first-serve basis, get in touch.
license
MIT
探索相关项目
加载中…