Giter VIP home page Giter VIP logo

delete-tweets's Introduction

Delete tweets

Delete tweets (or just replies or retweets) from your timeline, including tweets beyond the 3,200 tweet limit.

Prerequisites

Configure API access

  1. Open Twitter's Application Management, and create a new Twitter app.
  2. Set the permissions of your app to Read and Write.
  3. Set the required environment variables:
TWITTER_CONSUMER_KEY="[your consumer key]"
TWITTER_CONSUMER_SECRET="[your consumer secret]"
TWITTER_ACCESS_TOKEN="[your access token]"
TWITTER_ACCESS_TOKEN_SECRET="[your access token secret]"

Get your tweet archive

  1. Open your Twitter account page.
  2. Scroll to the bottom of the page, click 'Request your archive' (not 'Your Twitter data' in the left sidebar!), and wait for the email to arrive.
  3. Follow the link in the email to download your Tweet archive.
  4. Unpack the archive, and move tweets.csv to the same directory as this script.

Installation

Install the required dependencies.

pip install -r requirements.txt

Usage

For example, delete any tweet from before January 1, 2014:

python deletetweets.py -d 2014-01-01

Or delete all retweets:

python deletetweets.py -r retweet

delete-tweets's People

Contributors

dependabot-support avatar koenrh avatar lewiscowles1986 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.