Skip to content

Follows Twitter users and tweets where they are mentioned. Posts found tweets to collector.

Notifications You must be signed in to change notification settings

goliasz/snowplow-twitter-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

snowplow-twitter-tracker

Installation

$ sudo apt-get install python-dev
$ sudo pip install tweepy
$ sudo pip install snowplow-tracker
$ sudo pip install contracts
$ git clone https://github.com/goliasz/snowplow-twitter-tracker.git

Twitter Setup

  1. Create your app here https://apps.twitter.com/
  2. Generate your access token

Twitter User IDs

You can find Twitter user ID using this page http://gettwitterid.com/

Parameters of twitter-miner.sh

  1. Comma separated list of user IDs you are going to follow.
  2. Push found tweets to collector (yes/no)
  3. Reject tweets only mentioning followed user (yes/no). If "yes" we will push to collector only tweets authored by followed user.

Start

$ export TWITTER_TOKEN="<HERE TOKEN>" 
$ export TWITTER_TOKEN_SECRET="<HERE TOKEN SECRET>" 
$ export TWITTER_KEY="<HERE KEY>" 
$ export TWITTER_SECRET="<HERE KEY SECRET>"
$ export SP_COLLECTOR_URI="<HERE COLLECTOR URI>"
$ export SP_COLLECTOR_PORT=443
$ export SP_COLLECTOR_PROTOCOL="https"
$ export SP_COLLECTOR_METHOD="post"
$ cd snowplow-twitter-tracker
$ sh src/main/script/twitter-miner.sh "1367531,14293310" "yes" "no"

License

Apache License, Version 2.0

About

Follows Twitter users and tweets where they are mentioned. Posts found tweets to collector.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published