Skip to content

❌ Delete tweets via matching search, using Python and the Twitter API

Notifications You must be signed in to change notification settings

0xadada/delete-tweets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Delete tweets

Delete tweets (or just replies or retweets) from your timeline, including tweets beyond the 3,200 tweet limit.

Dependencies

  • python-twitter (pip install python-twitter)
  • python-dateutil (pip install python-dateutil)

Setup

  1. Create a new Twitter app at https://apps.twitter.com/
  2. Get the API key and secret of the app, and assign it to API_KEY and API_SECRET respectively
  3. Generate the access token and secret, and assign it to ACCESS_TOKEN and ACCESS_TOKEN_SECRET respectively
  4. Set the permissions of your app to Read and Write
  5. Request the Twitter archive at https://twitter.com/settings/account
  6. Replace tweets.csv with the CSV file from the requested Twitter archive

Run

  • Usage: deletetweets.py -h
  • E.g., delete all retweets until July 1, 2013: deletetweets.py -d "2013-07-01" -r "retweet"

About

❌ Delete tweets via matching search, using Python and the Twitter API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%