1

I need to use Python to download tweets (probably in the order of the tens of thousands) from past periods. Should I use the streaming API? Do you have any reference to suggest? Thanks

4

2 回答 2

1

Streaming API do not deal with past periods, you should use search/tweets. Be aware of fact that it returns up to 3200 tweets. Also, from the docs

Search API is not meant to be an exhaustive source of Tweets. Not all Tweets will be indexed or made available via the search interface.

For the reference, list libraries to deal with API can be found there.

于 2013-10-27T15:22:01.800 回答
0

Like they said, you cannot retrieve past tweets from their streaming API. You can try to look for free datasets like these ones (but it is quite difficult that the dataset that you find fits your needs):

http://www.infochimps.com/datasets/twitter-census-developer-tools-mapping-from-twitter-user-search-

http://www.sananalytics.com/lab/twitter-sentiment/

于 2013-11-09T19:38:16.980 回答