Retrieves as many posts from a known list of users as twitter API allows.
Converts them to activities, and writes them in activity format to Elasticsearch.
TwitterHistoryElasticsearch.dot
TwitterHistoryElasticsearch.dot.svg
TwitterHistoryElasticsearchConfiguration.json
twitter { host = "api.twitter.com" endpoint = "statuses/user_timeline" oauth { consumerKey = "" consumerSecret = "" accessToken = "" accessTokenSecret = "" } info = [ "42232950" "211620426" ] } elasticsearch { hosts = [ localhost ] port = 9300 clusterName = elasticsearch index = userhistory_activity type = activity }
In the Twitter section you should place all of your relevant authentication keys and whichever Twitter IDs you want to pull history for.
Twitter IDs can be converted from screennames at http://www.gettwitterid.com
mvn clean package verify
mvn -Pdocker clean package docker:build
java -cp dist/twitter-history-elasticsearch-0.2-incubating-jar-with-dependencies.jar -Dconfig.file=`pwd`/src/main/resources/application.conf org.apache.streams.example.twitter.TwitterHistoryElasticsearch docker run twitter-history-elasticsearch:0.2-incubating java -cp /twitter-history-elasticsearch-0.2-incubating-jar-with-dependencies.jar -Dconfig.url=http://<location_of_config_resource> org.apache.streams.example.twitter.TwitterHistoryElasticsearch