Skip to main content

No project description provided

Project description

twarc-divide

twarc-divide adds a new divide twarc command that lets you divide collected twitter data by date or a custom temporal window.

Install

To install you will need to:

pip3 install twarc-divide

Use

First you will need to collect some data with twarc:

twarc2 search politics tweets.jsonl

Then you can divide them by day:

mkdir days/
twarc2 divide tweets.jsonl days/

This will create in the directory days/ an output file for each day whose name will be the date. If the output file already exists, it will append the output to it.

You can also change the granularity of the temporal windows used:

mkdir hours/
twarc2 divide --granularity hour tweets.jsonl hours/

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

twarc_divide-0.1.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page