Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugocaillard/tweets-cleaner

Delete old tweets! :fire:
https://github.com/hugocaillard/tweets-cleaner

twitter

Last synced: 3 months ago
JSON representation

Delete old tweets! :fire:

Awesome Lists containing this project

README

        

# 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](https://twitter.com/settings/account) (you might want to keep it safe, if you ever miss your tweets!)
- [Create an app on Twitter](https://apps.twitter.com/) 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**:exclamation: 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` :fire:

#### License WTFPL