Yonet / TweetMigration

A WebGL heatmap of global Twitter activity
http://tweetmigration.herokuapp.com/#style=clouds
BSD 2-Clause "Simplified" License
43 stars 11 forks source link

Implement historical tweet streaming API #5

Open lazd opened 10 years ago

lazd commented 10 years ago

The API should return a stream from the start date until real time.

UTC time in milliseconds. Must be in the past. Defaults to real time.

locations

A comma-separated list of longitude,latitude pairs specifying a set of bounding boxes to filter Tweets by as defined by the Twitter streaming API.

track

A comma-separated list of phrases which will be used to determine what Tweets will be delivered on the stream as defined by the Twitter streaming API.

Return a stream from the start date until real time.

Respond to socket events

setStartDate

Set the date to stream from in milliseconds. Send -1 for real-time streaming.

setTrack

Set the track option with the provided track string.

setLocations

Set the locations option with the provided locations string.

setSpeed

Set the playback speed multiplier to speed up or slow down the stream