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
- Host: GitHub
- URL: https://github.com/jplock/tweet_purge
- Owner: jplock
- Created: 2018-01-01T16:46:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T00:13:09.000Z (over 7 years ago)
- Last Synced: 2025-02-10T06:23:21.883Z (4 months ago)
- Topics: delete, purge, tweets, twitter, twitter-api
- Language: Python
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 pythonCONSUMER_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
```