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

https://github.com/jplock/tweet_purge

Bulk delete tweets from twitter
https://github.com/jplock/tweet_purge

delete purge tweets twitter twitter-api

Last synced: 2 months ago
JSON representation

Bulk delete tweets from twitter

Awesome Lists containing this project

README

        

Usage
=====

Request your Twitter archive at https://twitter.com/settings/your_twitter_data. Extract the archive and checkout these files into the archive directory.

```
cd
git clone https://github.com/jplock/tweet_purge.git
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
```

Create a new application on https://apps.twitter.com to get your Consumer Key, Consumer Secret, and generate an Access Token Key and Access Token Secret.

Create config.py

```
#!/usr/bin/env python

CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN_KEY = ''
ACCESS_TOKEN_SECRET = ''
```

Adjust the number of days of tweets to delete in `tweet_purge.py`

```
delta = timedelta(days=30)
```

Then execute the script:

```
python tweet_purge.py
```