Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugocaillard/tweets-cleaner
Delete old tweets! :fire:
https://github.com/hugocaillard/tweets-cleaner
Last synced: 3 months ago
JSON representation
Delete old tweets! :fire:
- Host: GitHub
- URL: https://github.com/hugocaillard/tweets-cleaner
- Owner: hugocaillard
- Created: 2016-03-06T19:22:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T10:49:53.000Z (about 2 years ago)
- Last Synced: 2024-10-12T20:33:11.310Z (3 months ago)
- Topics: twitter
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 97
- Watchers: 4
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
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