A small python script that allows you to delete your old tweets.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitter_cleaner-0.3.0.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for twitter_cleaner-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be34a8dfbb0b21df229d70046a9726601b2dd92cb436dd8b11eef6b470ce914 |
|
MD5 | 6f9c98c72ddab31302bdce05544e899d |
|
BLAKE2b-256 | da10e91b424472621145079bf4eaeb6b084d80f8ca74f34df8d5da82cd18cdcc |