A simple app to delete tweets
Project description
Easy Tweet Deleter
A simple app to delete tweets from a twitter account
Get Your Keys!
-
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
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file easy_tweet_deleter-0.0.2.tar.gz
.
File metadata
- Download URL: easy_tweet_deleter-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 671baf86e22c65abace71576dbe1a0db2a29940e9d0cb3ee7db8a71901c2eede |
|
MD5 | c58eb2fe5028f984fa680abede66fcc0 |
|
BLAKE2b-256 | d95978072e104d61414f7b053623860ec6d12c8beffb6397f880bf7a6543a1a0 |