You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yann Esposito (Yogsototh) 8cf0e997a8 unfollow auto first step 4 years ago
src unfollow auto first step 4 years ago
test initial commit 5 years ago
.gitignore initial commit 5 years ago
LICENSE initial commit 5 years ago
README.md initial commit 5 years ago
Setup.hs initial commit 5 years ago
lotwittery.cabal unworking unfollower 4 years ago
stack.yaml lts-3.1 4 years ago

README.md

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