You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bitter/bin
J. Fernando Sánchez 7724967285 Add filter-edges 6 years ago
..
README.md Add sh scripts 6 years ago
example_query.sh Add sh scripts 6 years ago
extract-hashtags.sh Add sh scripts 6 years ago
extract-interactions.sh Add sh scripts 6 years ago
extract-limits.sh Add sh scripts 6 years ago
extract-media.sh Add sh scripts 6 years ago
extract-users.sh Add sh scripts 6 years ago
extract.sh Add sh scripts 6 years ago
extract_extended.sh Add sh scripts 6 years ago
extract_text.sh Add sh scripts 6 years ago
filter-edges.sh Add filter-edges 6 years ago
functions.py Add sh scripts 6 years ago
print-hashtags.sh Add sh scripts 6 years ago
print-replies.sh Add sh scripts 6 years ago
print-rts.sh Add sh scripts 6 years ago

README.md

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.