More delete options will come.
mass delete tweets :
- Go into your twitter account settings and ask for your tweets archive (bottom of the page).
- Check your mailbox (the one associated with your twitter account) and download the zip archive.
- Now extract
tweets.csv
from the downloaded archive into wtweets's directory.
make the script work :
- Create your own twitter application here
- Permissions tab :
- Set "Read and Write" access.
- Keys and Access Tokens tab :
- Generate consumer key & consumer secret (normally done at app creation) ;
- Generate access token & access token secret.
- Permissions tab :
- Once generated, copy these four credentials in their respective places in the
credentials.toml
file. - You are ready to go.
The twitter API sets a limit of 3200 tweets recovered per user.
By parsing csv file, we can retrieve tweets ID (and more) directly and without worries.
Download python 3.x.x
Go into scripts
folder and click on windows.bat
file.
This will start a cmd and install dependencies + print you Usage.
You can skip Dependencies section.
You should use python
instead of python3
for running wtweets.py.
# pip install -r requirements.txt
usage: wtweets.py [-h] [--csv [FILENAME] | -s | -n] [-f] [-d]
optional arguments:
-h, --help show this help message and exit
--csv [FILENAME] use csv file for mass removal of tweets
-s, --soft wipe your 3200 newer tweets
-n, --none do not proceed to tweets deletion
-f, --fav wipe your favorites/likes
-d, --dm wipe your direct messages
- Mass delete tweets using (default)
tweets.csv
:
python3 wtweets.py
- Mass delete tweets + favorites deletion
python3 wtweets.py -f
- Only delete your favorites :
python3 wtweets.py -n -f