https://github.com/zoontek/twitter-eraser
A simple script to purge old tweets
https://github.com/zoontek/twitter-eraser
Last synced: 13 days ago
JSON representation
A simple script to purge old tweets
- Host: GitHub
- URL: https://github.com/zoontek/twitter-eraser
- Owner: zoontek
- License: mit
- Created: 2016-07-07T09:11:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T15:49:06.000Z (about 9 years ago)
- Last Synced: 2025-02-23T10:24:45.728Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitter-eraser
A simple (and fast) script to purge old tweets.
## Some simple steps
**1) Clone (or download) this repository**
```bash
git clone https://github.com/zoontek/twitter-eraser
cd twitter-eraser
```
**2) Install dependencies**
```bash
npm install
```
**3) Download your twitter archive**
- Consult the [twitter support](https://support.twitter.com/articles/20170160) for clear explanations
- Extract the archive, copy the `tweets.csv` file in the root folder
**4) Get twitter OAuth credentials**
- Go to the [Twitter app management](https://apps.twitter.com/) page, create a new app (or use an existing one)
- Fill the `config.json` file with your app *Consumer Key*, *Consumer Secret*, *Access Token* and *Access Token Secret*
**5) Tweak script `config.json`**
- `timeout_ms`: Request timeout, in ms (default: 15000)
- `keeped_tweets`: Number of tweets to keep (default: the 4000 latest)
- `concurrency`: Number of simultaneous requests. Don't push it too far to avoid server errors (default: 15)
**6) Run the script**
```bash
npm start
```