-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The v2 Twitter stream API delivers all results as part of a single stream. Each tweet that comes down the pipe has a tag, which identifies the searches it belongs to with a tag. This simplifies the StreamLoader quite a bit since it just needs to listen to the single stream, and then the stream is controlled by adding and removing stream rules using the Twitter API. The Database.startStream() and Datbase.stopStream() methods are used to start and stop the stream for a search. The StreamLoader class is started up and it basically connects and waits for tweets to process. Note: this new functionality means the DocNow app uses the v2 API for both searching and streaming Twitter data. More work will need to be done to allow the DocNow app to use the /tweets/search/all endpoint for historical tweets. That's next!
- Loading branch information
Showing
10 changed files
with
238 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.