Twitter searcher and streamer
-
Add
twitter4j.propertiesneeded to handle the credentials Twitter4J needs to connect and retrieve data from Twitter APIs -
Add the property
numberOfTweetsPerAPICallintatooine.confthat defines the number of tweets to request from Twitter's Search API at a time -
Add
commons-collections4POM dependency so we can use the utility methods of classCollectionUtils -
Add
PhyTwitterSearcherthat connects to Twitter's Search API to retrieve the last X tweets written by a specific user or containing a specific hashtag -
Add
PhyTwitterStreamerthat connects to Twitter's Streaming API to listen for either a sample of live public tweets or live tweets that match certain filters (written by certain users, written in specific languages, containing specific keywords, originating from specific geographical regions) -
Add unit tests for both classes
PhyTwitterSearcherandPhyTwitterStreamer