Skip to content


karussell edited this page Feb 26, 2011 · 21 revisions
Clone this wiki locally

Go Back to Home


Four easy steps to install Jetwick on your machine(s)!

  1. Clone jetwick sources and build jetwick

    • git clone jetwick
    • cd jetwick
    • mvn package -Dmaven.test.skip=true
  2. Start the Elastic Search Node

    • ./myjava
    • ensure it is started e.g. the following command should throw a missing index exception: curl -XGET 'http://localhost:9200/twindex/_status?pretty=true' or install elasticsearch-head
  3. Start jetwick

    • mvn jetty:run
    • you should see 'Started Jetty Server'
    • goto http://localhost:8080/jetwick/ to ensure it is started. You will see no tweets. But you shouldn't see an exception in the logs.
    • PS: or simply deploy the target/jetwick.war into your favourite java web server.
  4. Feed the index with tweets from twitter

    • create tagfile.txt and add one keyword per line e.g. 'java'
    • ./utils/
    • Output should be Imported tag:1 all tags:0
    • cp ./utils/ to ~/.jetwick/
    • edit twitter credentials (see below)
    • start tweet collector
      • ./myjava -maxTime=-1
    • Do not get irritated from exceptions when the TweetCollector queries the empty user index ...
    • Now wait ~30 sec then click search in the UI.

Twitter Credentials

  1. read
  2. register an application here: to search twitter or read your timeline
    • get the consumerKey + consumerSecret and set them in the ~/.jetwick/ file
    • jetwick.twitter4j.main.consumerKey=
    • jetwick.twitter4j.main.consumerSecret=
  3. create a new token + tokenSecret: login with your twitter account via jetwick
    • view the values, see TwitterSearch.oAuthOnCallBack and log tmpRequestToken.getToken();tmpRequestToken.getTokenSecret();
    • jetwick.twitter4j.main.token=
    • jetwick.twitter4j.main.tokenSecret=
Something went wrong with that request. Please try again.