Skip to content

Instantly share code, notes, and snippets.

View reallyfancy's full-sized avatar

Kerry Turner reallyfancy

View GitHub Profile
@reallyfancy
reallyfancy / delete_specific_tweet.py
Created October 16, 2017 12:03
Script for deleting a specific tweet by ID. This is useful when you want to un-retweet something that you retweeted from a user who has subsequently become private or blocked you.
# Pre-requisites: Python and tweepy. You will also need to register a Twitter app here: https://apps.twitter.com/
# To use: replace XXXXXX with the appropriate info and run the script.
# Tip: To find the ID of a retweet, view the page source in your browser and look for data-retweet-id.
import tweepy
# auth and api
consumer_key = 'XXXXXX'
consumer_secret = 'XXXXXX'
access_token = 'XXXXXX'