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
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
Create a local file application.conf
with valid twitter credentials
twitter { oauth { consumerKey = "" consumerSecret = "" accessToken = "" accessTokenSecret = "" } }
Start up elasticsearch with docker:
mvn -PdockerITs docker:start
Build with integration testing enabled, using your credentials
mvn clean test verify -DskipITs=false -DargLine="-Dconfig.file=`pwd`/application.conf"
Shutdown elasticsearch when finished:
mvn -PdockerITs docker:stop
java -cp dist/twitter-history-elasticsearch-jar-with-dependencies.jar -Dconfig.file=file://<location_of_config_file> org.apache.streams.example.twitter.TwitterHistoryElasticsearch
mvn -Pdocker -Ddocker.repo=<your docker host>:<your docker repo> docker:build docker:push
docker run twitter-history-elasticsearch java -cp twitter-history-elasticsearch-jar-with-dependencies.jar -Dconfig.url=http://<location_of_config_file> org.apache.streams.example.twitter.TwitterHistoryElasticsearch