https://github.com/rubenrp/tweet-deleter
Python script that allows to delete a date range of tweets using Twitter API
https://github.com/rubenrp/tweet-deleter
python script twitter twitter-api
Last synced: 11 months ago
JSON representation
Python script that allows to delete a date range of tweets using Twitter API
- Host: GitHub
- URL: https://github.com/rubenrp/tweet-deleter
- Owner: rubenRP
- License: mit
- Created: 2021-01-11T15:24:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-19T19:24:15.000Z (about 5 years ago)
- Last Synced: 2025-01-14T05:42:48.215Z (about 1 year ago)
- Topics: python, script, twitter, twitter-api
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tweet Deleter
Complete script made in Python that allows to delete all the tweets of an account given a date range. For this it makes use of the Twitter API so it is necessary to have a Twitter Developers account
## Configuration
1. Add the API keys in remove-tweets.py file:
```
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
ACCESS_TOKEN_KEY = ""
ACCESS_TOKEN_SECRET = ""
```
2. Modify the date range:
```
range_start = parse_datetime('Sep 10 00:00:00 +0000 2007')
range_end = parse_datetime('Jan 10 00:00:00 +0000 2019')
```
3. Run the script
```
python tweet-deleter.py