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.
|
8 years ago | |
---|---|---|
src | 8 years ago | |
test | 8 years ago | |
.gitignore | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
Setup.hs | 8 years ago | |
lotwittery.cabal | 8 years ago | |
stack.yaml | 8 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