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
Just clone this repo and install the requirements.txt packages. Python3 is required.
git clone https://github.com/fsjunior/twitter_cleaner.git
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
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 main.py --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.2.0.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for twitter_cleaner-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216e0a39f81860bf90184682b73c677354787575b06062903a973548c4e0b89b |
|
MD5 | 9a69942a6542194503f17fece1dc8709 |
|
BLAKE2b-256 | 037901f1974c8b34cc14a798bdbeea24750d4787df5356d484f20e09f67c49c4 |