The application structure
On the frontend, we will have a Single Page App with three client-routed pages: Filters, Sentiment, and Tweets.
On the Filters page, the user will be able to specify filters (phrases, keywords) that will be passed on to the server side where we will parse all incoming tweets containing that keyword. The incoming tweets from the stream will be geolocation-based, which can be specified as latitude and longitude pairs.
The reason for not directly using the filter passed by the user is that each time a new filter is specified, we have to disconnect from the stream and reconnect again with the new parameters. After a certain amount of reconnections, Twitter will rate limit us for all connections that are using the same ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access