Giter Site home page Giter Site logo

find-birds's Introduction

find-birds

user interface

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:

  1. 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.
  2. Run report.py --from-user karpathy, which finds the most commonly occurring people and then renders the results into an html page (by default report.html), for pretty consumption. You'll be able to use this script before the fetch.py script 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

find-birds's People

Contributors

karpathy avatar

Watchers

James Cloos avatar Shivam Gupta avatar

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.