- ./fetch_tweets.py
- ./slice.py
- ./rank_users.py
- ./normalize_urls.py
- ./rank_urls.py
rgrig / twitstat Goto Github PK
View Code? Open in Web Editor NEWcompute some statistics on twitter statuses
Home Page: http://rgrig.wordpress.com/
compute some statistics on twitter statuses
Home Page: http://rgrig.wordpress.com/
update_statuses.py should stop getting older statuses once it sees that it knows some of those last fetched.
also, figure out how to populate it
The reply from Twitter contains expanded_url
.
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
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.
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.
choose alpha automatically in cluster.py
also, output hierarchical clusters?
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.
If user A likes a tweet by user B, add a link A->B in the graph for pagerank.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.