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 Provenance Actions
easy_tweet_deleter-0.0.2.tar.gz 3.9 kB Without provenance Details for easy_tweet_deleter-0.0.2.tar.gz

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

Security for easy-tweet-deleter 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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