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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twarc_divide-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for twarc_divide-0.1.0-py3-none-any.whl |
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
|
Security for twarc-divide 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.