v2.1.0
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.