twarc-hashtags
This module is extends twarc with a hashtags command that will extract and
count the hashtags in a tweet dataset.
Install
pip install twarc-hashtags
Collect some Twitter data, for example:
twarc2 search blacklivesmatter tweets.jsonl
Because you installed the plugin you have a new subcommand hashtags:
twarc2 hashtags tweets.jsonl hashtags.csv
Then open hashtags.csv in your favourite spreadsheet program or
DataFrame library.
Behind the scenes twarc-hashtags uses Python's native support for SQLite to
create a database and then insert/query it. You can see this database after the
program finishes as hashtags.db in your current working directory.
Options
--group: group results by day, week, month, year
--limit: limit to this number of hashtags (per group if --group is used)
--db: if you would like to name the database something other than
hashtags.db
--no-insert: use an existing database instead of inserting (useful for large numbers of tweets)
Metadata
Release files for twarc-hashtags 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twarc-hashtags-0.0.5.tar.gz | 3.7 kB | Without provenance | Details for twarc-hashtags-0.0.5.tar.gz |
Security for twarc-hashtags 0.0.5
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.