Skip to content

v2.1.0

Compare
Choose a tag to compare
@edsu edsu released this 31 May 19:25
· 512 commits to main since this release
c715bc0

v2.1.0 removes the --flatten option from many commands in the hopes of encouraging users to mostly use the original data as retrieved from the Twitter API. The subcommand twarc2 flatten remains mostly for use in data processing pipelines that expect line oriented json where each object is a tweet:

twarc2 search blacklivesmatter | twarc2 flatten | jq .text 

The twarc.expansions.flatten() function has been updated to always return a list of tweets, and twarc.expansions.ensure_flattened() can be used to make sure data has been flattened already when processing tweet data. Since it is designed for use in twarc plugins and other pieces of software that need to work with tweets it is also available for import from twarc:

from twarc import ensure_flattened

In addition this release also includes twarc conversation for retrieving tweets from a a particular conversation thread.