Skip to main content

A twarc plugin to read Twitter data and output the tweet ids

Project description


This module is a simple example of how to create a plugin for twarc. It uses click-plugins to extend the main twarc command, and to manage the command line options.

First you need to install twarc and this plugin:

pip install twarc
pip install twarc-ids

Now you can collect data using the core twarc utility:

twarc search blacklivesmatter > tweets.jsonl

And you have a new subcommand ids that is supplied by twarc-ids.

twarc ids tweets.jsonl > ids.txt

It's good practice to include some tests for your module. See for an example. You can run it directly with pytest or using:

python test

When creating your make sure you don't forget the entry_points magic so that twarc will find your plugin when it is installed!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twarc-ids-0.0.3.tar.gz (2.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page