Poll User Data daily#30
Open
tdraebing wants to merge 6 commits into
Open
Conversation
added 6 commits
February 28, 2017 15:39
Contributor
|
Thanks @tdraebing ! Let me pull this down and play with it over the next couple days but thanks a ton for the work! I'll get back with a review no later than Thursday. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementing a daily poll of twitter user data as described in issue #16.
Running the docker instance now will next indexing tweets with specified topics also fetch user data once a day.
The timing is achieved by extending the original
crontab-script.The
index_user_profiles.py-script takes a file listing the user-IDs of the user data to be pulled separated by line breaks. It uses thelookup_users()method of tweepy to fetch the data from Twitter's REST API and hands it to ElasticSearch for indexing.The following features are extracted from the full set of user features provided by the twitter API:
If you have further suggestions or found bugs, I would be happy to deal with those as well.
Cheers,
Thomas