Code Monkey home page Code Monkey logo

zzzzz's Introduction

Stalky

Um hello I guess you're here because you want to look at the code for this or run it yourself.

The code is up there ^^^^ so I guess here's how you run it yourself.

What is this?

Oh, reading the blog post would really make that more clear.

Installation

Just run pip install -r requirements.txt

(virtualenv is for suckers right now)

You'll also need to supply some way of authenticating yourself to Facebook.

Do this by creating a SECRETS.txt file with the following lines:

uid=<Contains your Facebook user id>
cookie=<Contains your Facebook cookie>
client_id=<Contains your Facebook client id. Find it by inspecting the GET parameters sent when your browser requests `facebook.com/pull` using your browser's dev tools.>
excludes=<Contains your facebook friends ids which you want to exclude (optional)>

Download some data

python fetcher.py

This will run indefinitely and create data in "log". Depending on the number of Facebook friends you have, and how active they are, you can expect around 50-100MB/day to be written to disk.

Make some graphs

  1. Run python graph.py to convert all the raw log data into CSVs
  2. Run python app.py to start the 100% CSS-free "webapp"
  3. Go to http://localhost:5000 to view the ultra-minimal "webapp"
  4. Paste the Facebook user id that you want to graph into the box.

You did it!

zzzzz's People

Contributors

christiandeange avatar defaultnamehere avatar kevchentw avatar klvs avatar maraoz avatar nsetzer avatar parvjain avatar si-tacuisses avatar tolnaizoltan avatar

Watchers

 avatar  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.