Skip to main content

Easy Tweet Deleter

A simple app to delete tweets from a twitter account

Get Your Keys!

  1. You need a Twitter dev account: https://developer.twitter.com/en/apps, set up a Twitter developer account, and create an "App". This contains 2 consumer API keys:

    • account_key
    • account_secrect
  2. API access tokens for your twitter account from https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens. This contains 2 more API keys:

    • access_key
    • access_secret

Instructions:

Easy Tweet Deleter contains 2 functions to check and to delete tweets, both require the same 6 parameters. When checking tweets it is possible to list them to a text file with the optional 'text_file' parameter.

  • username (str) = the twitter username
  • account_key (str) = account_key from Step 1
  • account_secret (str) = account_secret from Step 1
  • access_key (str) = access_key from Step 2
  • access_secret (str) = access_secret from Step 2
  • date_older_than (str) = It will identify tweets before this date (use YYYY_MM_DD date format)

Check Tweets

Use the function 'check_easy_twitter_deleter' to find and list tweets. It is reccomended that this is run first as when tweets are deleted they cannot be reteived!

import easy_tweet_deleter

username = "Username"
account_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
account_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
access_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
access_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
date_older_than = "2020-01-01"
text_file = "filepath"

easy_tweet_deleter.check_easy_twitter_deleter(username, account_key, account_secret, access_key, access_secret, date_older_than, text_file)

Delete Tweets

Use the function 'run_easy_twitter_deleter' to find and delete tweets

import easy_tweet_deleter

username = "Username"
account_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
account_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
access_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
access_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
date_older_than = "2020-01-01"

easy_tweet_deleter.run_easy_twitter_deleter(username, account_key, account_secret, access_key, access_secret, date_older_than)

easy_tweet_deleter

Metadata

Release files for easy-tweet-deleter 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-tweet-deleter 0.0.2
File Size Uploaded
easy_tweet_deleter-0.0.2.tar.gz 3.9 kB Details

Release files / easy_tweet_deleter-0.0.2.tar.gz

Download URL easy_tweet_deleter-0.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
671baf86e22c65abace71576dbe1a0db2a29940e9d0cb3ee7db8a71901c2eede
BLAKE2b-256 checksum
How to use checksums
d95978072e104d61414f7b053623860ec6d12c8beffb6397f880bf7a6543a1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page