Twarc

Latest version: v2.14.0

Safety actively analyzes 638396 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 22

2.3.2

This release will hopefully allow catching of ChunkedEncodingError exceptions that have been observed intermittently in the wild. 471

2.3.1

A bugfix release to allow the counts command to write to a file without using stdout redirection:

twarc2 counts blm blm.jsonl

2.3.0

This release includes a new command for retrieving data from the new [counts API](https://twittercommunity.com/t/introducing-new-tweet-counts-endpoints-to-the-twitter-api-v2/155997).


Usage: twarc2 counts [OPTIONS] QUERY [OUTFILE]

Return counts of tweets matching a query.

Options:
--since-id INTEGER Count tweets sent after tweet id
--until-id INTEGER Count tweets sent prior to tweet id
--start-time [%Y-%m-%d|%Y-%m-%dT%H:%M:%S]
Count tweets created after UTC time (ISO
8601/RFC 3339), e.g. 2021-01-01T12:31:04
--end-time [%Y-%m-%d|%Y-%m-%dT%H:%M:%S]
Count tweets sent before UTC time (ISO
8601/RFC 3339)
--archive Count using the full archive (requires
Academic Research track)
--granularity [day|hour|minute]
Aggregation level for counts. Can be one of:
day, hour, minute. Default is hour.
--limit INTEGER Maximum number of days of results to save
(minimum is 30 days)
--text Output the counts as human readable text
--csv Output counts as CSV
--help Show this message and exit.

2.2.1

This release includes improved reading of users from files for the timelines subcommand, and some internal changes to the way that flattening works.

2.2.0

This release adds the `--exclude-retweets` and `--exclude-replies` commands to the `timeline` and `timelines` subcommands. Behind the scenes all the source code has been reformatted using [black](https://black.readthedocs.io/en/stable/).

2.1.8

This release fixes a bug in `twarc timelines` when using a file of user ids instead of collected tweets 484

twarc2 timelines user-ids.txt > tweets.jsonl

Thanks JanaLasser for the bug report!

Page 8 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.