No description
Find a file
Yann Esposito (Yogsototh) 8cf0e997a8 unfollow auto first step
2015-08-19 00:09:21 +02:00
src unfollow auto first step 2015-08-19 00:09:21 +02:00
test initial commit 2015-08-05 00:30:26 +02:00
.gitignore initial commit 2015-08-05 00:30:26 +02:00
LICENSE initial commit 2015-08-05 00:30:26 +02:00
lotwittery.cabal unworking unfollower 2015-08-18 00:55:44 +02:00
README.md initial commit 2015-08-05 00:30:26 +02:00
Setup.hs initial commit 2015-08-05 00:30:26 +02:00
stack.yaml lts-3.1 2015-08-17 16:19:03 +02:00

Lotwittery

Usage

> lotwittery --help
Lotwittery v0.1-pre
Don't forget to use +RTS -N<x> to use <x> cores.

options [OPTIONS]

Common flags:
     --apis=HOST:PORT,HOST2:PORT2                    Comma separated API
                                                     hosts:port
  -d --debug                                         Debug mode
     --keywords=KEYWORD1,... --optkeywords           Keywords /!\TESTING
                                                     ONLY/!\
     --maxkeywords=INT                               Maximal number of
                                                     keywords we can query to
                                                     twitter
     --maxauthors=INT                                Maximal number of
                                                     authors we can query to
                                                     twitter
     --timetowait=INT                                Time in second to wait
                                                     before trying to update
                                                     the queries
  -f --fewtweetstolerance=INT                        Time in second to
                                                     tolerate few tweets, after
                                                     that time suicide himself
     --threshold=INT                                 Minimal number of tweets
                                                     per second under which
                                                     things are anormal
Kafka:
  -b --brokers=HOST:PORT,HOST2:PORT2 --kafkabrokers  Kafka brokers list
     --topic=STRING --kafkatopic                     Kafka Topic
     --author-topic=STRING --kafkaauthorstopic       Kafka Topic for Authors
                                                     Metadatas
     --credentials=CREDNAME                          Predefined Credential
OAUTH:
     --consumer-key=KEY --oauthconsumerkey           Consumer Key
     --consumer-secret=KEY --oauthconsumersecret     Consumer Secret
     --access-token=KEY --oauthaccesstoken           Access Token
     --access-secret=KEY --oauthaccesssecret         Access Secret
  -? --help                                          Display help message
  -V --version                                       Print version
                                                     information
     --numeric-version                               Print just the version
                                                     number

INSTALL

You must install stack:

And librdkafka:

git clone https://github.com/yogsototh/librdkafka
cd librdkafka
./configure && make && sudo make install

To build it:

stack build

To install it in ~/.local/bin:

stack install

Don't forget to add

export LD_LIBRARY_PATH=/usr/local/lib

in your environment before running lotwittery