Skip to content

hugocaillard/tweets-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweets Cleaner

Delete old tweets.

Why?

The Twitter API only gives access to your 3200 last tweets to third party apps, that's already a lot but we are talking about big ol accounts!

Here, tweets are accessed through your .zip archive and allows you to delete old tweets from your account.

Warning

This scripts definitely deletes some of your tweets!

Features

  • Set a maximum date to limit deletions to after a certain date.
  • Tracks progress in a local log file for confirmation and in case app crashes / you want to start it up later.

Usage

  • Request you Twitter archive (you might want to keep it safe, if you ever miss your tweets!)
  • Create an app on Twitter the get your keys
  • Download or clone the repo
  • Rename config.sample.js by config.js and set your keys and settings
  • OPTIONAL: In config.js Set the maxDate, your tweets older than this date will be deleted❗ If not provided, will use current date.
  • OPTIONAL: In config.js Set a file path for the log file. If not provided will create log.json
  • OPTIONAL: In config.js Set the array saveRegexp for saving tweets. For example you want to save tweets with some hashtag or with mention of somebody
  • Copy tweet.js from your Twitter archive from step 1 in the same directory, or the path specified in config.js
  • $ npm i; npm start 🔥

License WTFPL