Twarc

Latest version: v2.14.0

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

Scan your dependencies

Page 4 of 22

2.8.3

Fixes an issue where twarc was not correctly handling the 1 request/s rate limit for the `search/all` endpoint. Also includes better handling and error messages of situations when that rate limit is hit.

2.8.2

This release includes some improvements to how the mandatory the mandatory one
second sleep between requests to the search api is handled with some of the
twarc2 commands. See 575 for details.

2.8.1

to Twitter's Building Queries for Search Tweets to help users figure out what's
possible.

https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query

2.8.0

representation of a tweet by requesting all tweet, user, media, place and poll fields as well as all available expansions. This is generally good practice with twarc because it means that downstream processing of the collected data can rely on have all this data at its disposal. However there may be cases where you want to customize the data that comes back. This is not recommended practice but it could be useful in some contexts.

The following options allow you to fine tune the types of data that are requested when using the following sub-commands: search, searches, tweet, sample, hydrate, users, mentions, timeline, timelines, conversation, conversations, and stream. The options include:


--expansions TEXT Comma separated list of expansions to
retrieve. Default is all available.
--tweet-fields TEXT Comma separated list of tweet fields to
retrieve. Default is all available.
--user-fields TEXT Comma separated list of user fields to
retrieve. Default is all available.
--media-fields TEXT Comma separated list of media fields to
retrieve. Default is all available.
--place-fields TEXT Comma separated list of place fields to
retrieve. Default is all available.
--poll-fields TEXT Comma separated list of poll fields to
retrieve. Default is all available.


These correspond to the API [Fields and Expansions](https://developer.twitter.com/en/docs/twitter-api/data-dictionary/using-fields-and-expansions).

There is also `--minimal-fields` which requests just a minimal subset of data, and `--no-context-annotations` that does not include context-annotations, which allows more tweets to be fetched at one time (500 instead of 100). This also applies to the sub-commands: search, searches, tweet, sample, hydrate, users, mentions, timeline, timelines, conversation, conversations, stream.


--minimal-fields By default twarc gets all available data.
This option requests the minimal retrievable
amount of data - only IDs and object
references are retrieved. Setting this makes
--max-results 500 the default. NOTE: This
argument is mutually exclusive with
arguments: [--counts-only, --poll-fields,
--media-fields, --expansions, --no-context-
annotations, --place-fields, --user-fields,
--tweet-fields].

2.7.3

A bugfix release to apply black formatting rules.

2.7.2

A bugfix release to apply black formatting rules.

Page 4 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.