GithubHelp home page GithubHelp logo

twitstat's Introduction

  • ./fetch_tweets.py
  • ./slice.py
  • ./rank_users.py
  • ./normalize_urls.py
  • ./rank_urls.py

asciicast

twitstat's People

Contributors

rgrig avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mattstabeler

twitstat's Issues

talk graph

Dump a graph whose edges A->B means that A wrote a status mentioning @b (or, configurably, starting with @b). Then compute statistics on this graph:

  1. clusters (k-means)
  2. pagerank

stop getting old statuses

update_statuses.py should stop getting older statuses once it sees that it knows some of those last fetched.

script to remove nonexistent accounts

Remove nonexistent accounts from db/config.js

Options:
(a) visit twitter.co/screen_name and see if account exist (API for equivalent action?)
(b) check the user_id of the old screen_name and update screen_name if there is a newer one

special people

Some people are near a certain location, are influential, but Twitter doesn't return them in the search (e.g. chinezu says he's from Romania, so Twitter doesn't include him in the results for Bucharest). Even though searching for people (as opposed to places) is expensive (in terms of number of 'calls' to Twitter's API) I should have a small list with 'exceptions' and scrape those too.

retweet

At this time retweets (which use the twitter API, as oppesed to the manual ones) are ignored. They should be collected and taken into account for statistics.

auto cluster

choose alpha automatically in cluster.py
also, output hierarchical clusters?

use extended tweets

Currently, I get tweets using the search API v1.1 (https://api.twitter.com/1.1/search/tweets.json). However, it seems to not return extended tweets, which means that everything after the first 140 characters (including mentions and urls) is missing from the API reply.

To explore (I don't know if they'd solve the problem):

Using timelines means reducing some functionality, but it's functionality I almost never use: most of the time I just want a list of users as the roots.

Moving to v2 may involve more time than I'm willing to spend.

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.