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 details)

Uploaded Python 3

File details

Details for the file twarc_divide-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: twarc_divide-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for twarc_divide-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78c9cfa48a043c0cdce748ad3560ca0ea3cd31c70db299abaa08c4c499a6f9a
MD5 ce2ff6651c01bfa901b1bda4749c3388
BLAKE2b-256 8580e563d286e1aedc3cfa00ebdee9a07ff2b532ea139c0b27a55e43f236f7bf

See more details on using hashes here.

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