Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming multiple tweets - from multiple users? - Twitter API

I have a big list of Twitter users stored in a database, almost 1000.

I would like to use the Streaming API in order to stream tweets from these users, but I cannot find an appropriate way to do this.

Help would be very much appreciated.

like image 923
RadiantHex Avatar asked Jan 23 '10 15:01

RadiantHex


People also ask

What is the difference between Twitter search API and streaming API?

Unlike Twitter's Search API where you are polling data from tweets that have already happened, Twitter's Streaming API is a push of data as tweets happen in near real-time. With Twitter's Streaming API, users register a set of criteria (keywords, usernames, locations, named places, etc.)

Can I tweet using Twitter API?

While not rate limited by the API, a user is limited in the number of Tweets they can create at a time. If the number of updates posted by the user reaches the current allowed limit this method will return an HTTP 403 error.

What is the limit of Twitter's search API?

These RESTful APIs supports a single query of up to 2,048 characters per request. Queries are written with the PowerTrack rule syntax - see Rules and filtering for more details. Users can specify any time period, to the granularity of a minute.


2 Answers

According to the Twitter API documentation, you can only use the streaming API to follow up to 400 users. For more than that, you'll have to request an increased access level for the account you use to access the API.

like image 137
balpha Avatar answered Oct 11 '22 19:10

balpha


You can track 400 filter words and 5000 userids via streaming api. Filter words can be something apple, orange, ipad etc... And in order to track any user's timeline you need to get the user's twitter user id.

like image 32
Cenk Avatar answered Oct 11 '22 18:10

Cenk