Skip to content

zxvfxwing/wtweets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wipe all your tweets.

More delete options will come.

How to ?

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
    1. Permissions tab :
      • Set "Read and Write" access.
    2. Keys and Access Tokens tab :
      • Generate consumer key & consumer secret (normally done at app creation) ;
      • Generate access token & access token secret.
  • Once generated, copy these four credentials in their respective places in the credentials.toml file.
  • You are ready to go.

Why are we using a csv file to proceed mass deletion ?

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.

Windows user ?

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.

Dependencies :

# pip install -r requirements.txt

Usage :

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

Run examples :

  1. Mass delete tweets using (default) tweets.csv :
python3 wtweets.py
  1. Mass delete tweets + favorites deletion
python3 wtweets.py -f
  1. Only delete your favorites :
python3 wtweets.py -n -f