1
0
mirror of https://github.com/balkian/bitter.git synced 2024-12-22 00:18:12 +00:00
bitter/bin
J. Fernando Sánchez 7724967285 Add filter-edges
2018-08-21 12:57:03 +02:00
..
example_query.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract_extended.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract_text.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract-hashtags.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract-interactions.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract-limits.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract-media.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract-users.sh Add sh scripts 2018-03-19 14:35:07 +01:00
extract.sh Add sh scripts 2018-03-19 14:35:07 +01:00
filter-edges.sh Add filter-edges 2018-08-21 12:57:03 +02:00
functions.py Add sh scripts 2018-03-19 14:35:07 +01:00
print-hashtags.sh Add sh scripts 2018-03-19 14:35:07 +01:00
print-replies.sh Add sh scripts 2018-03-19 14:35:07 +01:00
print-rts.sh Add sh scripts 2018-03-19 14:35:07 +01:00
README.md Add sh scripts 2018-03-19 14:35:07 +01:00

Scripts to process jsonlines

To get the jsonlines file, you can use the streaming API or the search api, like so:

python -m bitter.cli --config .bitter.yaml api '/search/tweets' --result_type recent --q 'bitter OR #bitter OR @bitter' --tweet_mode extended --tweets --max_count 5000 >> mytweets.jsonlines

To keep track of the query that generated the file, you can save the command in a text file. For instance, the example above is also in example_query.sh.