Connector to Twitter micro-blog platform (http://www.twitter.com).
PROFILES: ~1000 users per 1 minute;
STATUSES: ~1 user's timeline per 2 minutes (with count_replies=False
, 2k tweets maximum);
COMMENTS: replies to ~1 user per 1 minute (1k replies per user maximum).
STATUSES:
COMMENTS:
STATUSES:
with_rts = True/False
(default - False). Collect only original author tweets, or his tweets and retweets in his timeline. Note, that statistics for retweets is taken from originals.count_replies = True/False
(default - True). Count number of replies for every tweet. Original API has no 'replies' fieled, so connector uses Search to find replies. It takes much more time: actually all comments section is being collected. If you don't need number of comments - switch this parameter to False to speedup the process.STATUSES:
likes
field is always equal to zero. There is no likes in Twitter, and this field is used for unification purposes.Token data is stored in dictionary-like object. KeyChain identifier: tw
.
token = {
'consumer_key' : ...,
'consumer_secret' : ...,
'access_token' : ...,
'access_secret' : ...
}
Read how to get access token: Twitter token