Twitter Cleaner
A small python script that allows you to delete your old tweets.
Installation
Use pip:
pip install twitter_cleaner
How to use
- Apply for a Twitter Developer Account.
- While you wait for Twitter to review and approve your Developer Account, download your Twitter archive. Twitter limits the access of the tweets by the API, so the only way to retrieve your old tweets is using the Twitter archive.
- When you receive your archive, you should look for a JS file with contains all your tweets (tweet.js).
- After the approval of your Twitter Developer Account, create an app. Don't forget: you should set Read and Write in the Access Permissions settings.
- Open the details page of the app that you created. Go for the Keys and Tokens tab. You will need the consumer and access token keys to use Twitter Cleaner.
- Run:
python -m twitter_cleaner --consumer_key <consumer-key> \\
--consumer_secret <consumer-secret> \\
--access_token_key <access-token-key> \\
--access_token_secret <access-token-secret> \\
--older_than <date in YYYY-MM-DD format> \\
--file <path/to/tweet.js>
Filters
There are two filters available: filter tweets older than a date AND filter tweets newer than a date. If you need more filtering options, like filter tweets with less (or more) than a specific amount of engagement, please ask.
Metadata
Release files for twitter-cleaner 0.3.0
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 |
|---|---|---|---|---|
| twitter_cleaner-0.3.0.tar.gz | 17.1 kB | Without provenance | Details for twitter_cleaner-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twitter_cleaner-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for twitter_cleaner-0.3.0-py2.py3-none-any.whl |
Total release size: 34.0 kB
Release files / twitter_cleaner-0.3.0.tar.gz
| Download URL | twitter_cleaner-0.3.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ab19295414b2b759a4fd78f6766797b3cf00934c17331ac0b923eae3168f1a9
|
|
BLAKE2b-256 checksum How to use checksums |
65fb020bf3b9bb31a2aa06d6a468dd45b18298fea5cfdab68828d437f6b1a8b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Release files / twitter_cleaner-0.3.0-py2.py3-none-any.whl
| Download URL | twitter_cleaner-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4be34a8dfbb0b21df229d70046a9726601b2dd92cb436dd8b11eef6b470ce914
|
|
BLAKE2b-256 checksum How to use checksums |
da10e91b424472621145079bf4eaeb6b084d80f8ca74f34df8d5da82cd18cdcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Security for twitter-cleaner 0.3.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.