A twitter service used to delete tweets not protected by a custom tag and older than a specific date.
Project description
Introduction
A service which can be deployed to erase tweets older than a specific date and not marked with a custom tag
Requirements
Python 3.8
Required Python modules.
python-twitter==3.5
python-dateutil==2.8.1
Installation
Note: Use a virtual environment
Inside the folder to where the repository was cloned, simply execute: $ pip install .
The name of the package is twitter_amnesia
Usage
When installed, twitter-amnesia can be executed by calling the executable in the terminal.
Example:
$ twitter-amnesia -ck abcdefghijklmnopqrstuvwxy -cs abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX -tk 12345678-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO -ts abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRS
twitter-amnesia will immediately remove all tweets older than 1 month (default).
Options
Other options can be cnsulted using the --help
$ twitter-amnesia --help
usage: twitter-amnesia [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-d DAYS]
[-m MONTHS] [-y YEARS] [-t PROTECTION_TAG]
[-f SAVING_DIRECTORY] -ck CONSUMER_KEY -cs
CONSUMER_SECRET -tk TOKEN_KEY -ts TOKEN_SECRET
optional arguments:
-h, --help show this help message and exit
-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --logLevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Logging Level (default: INFO)
-d DAYS, --days DAYS Tweets older than 0 days (default value)
-m MONTHS, --months MONTHS
Tweets older than 1 months (default value)
-y YEARS, --years YEARS
Tweets older than 0 years (default value)
-t PROTECTION_TAG, --protection_tag PROTECTION_TAG
Protection Tag (default: [P])
-f SAVING_DIRECTORY, --saving_directory SAVING_DIRECTORY
Directory location to where deleted tweets are
exported (default: None)
-ck CONSUMER_KEY, --consumer_key CONSUMER_KEY
Consumer Key
-cs CONSUMER_SECRET, --consumer_secret CONSUMER_SECRET
Consumer Secret
-tk TOKEN_KEY, --token_key TOKEN_KEY
Access Token Key
-ts TOKEN_SECRET, --token_secret TOKEN_SECRET
Access Token Secret
Copyright
This project is protected under the GPLv3 License.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitter_amnesia-1.1.3-py3-none-any.whl.
File metadata
- Download URL: twitter_amnesia-1.1.3-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d29167be95e663d25916ee5d2e599115d5ba6609e39118e7e76a9ae8cb0b823
|
|
| MD5 |
1aaa910e5fa927d524ea3d3e21b00505
|
|
| BLAKE2b-256 |
4c0bbaa9cb814b7c69391c0a927686402ca4c53791edc87a4115562bec8a3024
|