Skip to main content

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/

Metadata

Release files for twarc-divide 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for twarc-divide 0.1.0
File Interpreter ABI Platform
twarc_divide-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / twarc_divide-0.1.0-py3-none-any.whl

Download URL twarc_divide-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d78c9cfa48a043c0cdce748ad3560ca0ea3cd31c70db299abaa08c4c499a6f9a
BLAKE2b-256 checksum
How to use checksums
8580e563d286e1aedc3cfa00ebdee9a07ff2b532ea139c0b27a55e43f236f7bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page