Welcome to tidy-twitter
tidy-twitter is a small program that is intended for those who want to clean up their Twitter history. A working Python3 environment and Twitter OAuth keys are required to run this program.
Installation and quickstart
It's recommended to install tidy-twitter with pipx. Install pipx first.
After pipx is installed run:
pipx install tidy-twitter
tidy_twitter --help
Twitter OAuth keys
Twitter OAuth keys can be obtained from https://developer.twitter.com/
Export the following keys before running this program:
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
Developer quick start
This program requires exporting Twitter OAuth keys to environment before use.
Use of virtual env is strongly recommended to not mess up your other / default Python environments.
-
Clone this repo
-
Install Python 3.9 with pyenv
-
Run the following to install all required dependencies and the program:
poetry install -
Run:
poetry run tidy_twitter --help
Usage
For help run
$ tidy-twitter --help
Usage: tidy-twitter [OPTIONS]
This program deletes all tweets for user handle older than given number of
days.
It requires following Twitter OAuth keys to be exported to the environment
before use:
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_TOKEN_SECRET
Options:
-s, --screen_name TEXT Twitter screen name (@username). [required]
-d, --days INTEGER Number of days, defaults to 30 days.
--version Show the version and exit.
--help Show this message and exit.
This program takes a few command line arguments in addition to fore-mentioned Twitter OAuth keys (as environment variables):
- --screen_name / -s - Twitter user handle (@username) that tweets will be deleted for. Write it here without an @.
- --days / -d - All tweets older than this number of days will be deleted. Default is 30 (days).
- --version - displays program version
- --help - displays help message
License
This software is released under MIT License. See LICENSE.txt for details.
Bugs, issues, feature requests
Feel free to use this repo's Issue Tracker If you have any bugs to report or any requests / issues.
Thanks,
Sven
Metadata
Release files for tidy-twitter 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tidy_twitter-1.1.2.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tidy_twitter-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / tidy_twitter-1.1.2.tar.gz
| Download URL | tidy_twitter-1.1.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2ce2737ee7aa706e6617e32865f10cf4ae622a56e1ab1167ebf010076dd0080
|
|
BLAKE2b-256 checksum How to use checksums |
5991fcce58c0b13ffd8833b642b324a4ce72a44ccb2e9fe61b7567a70c9134a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.7 Darwin/22.2.0
|
Release files / tidy_twitter-1.1.2-py3-none-any.whl
| Download URL | tidy_twitter-1.1.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50c47502c2f5b03d6efcbf98b215547acc39407a9ea42208e5fcd1345de3f615
|
|
BLAKE2b-256 checksum How to use checksums |
29eafb7c0c038095cb69c8ec517d314fba5eddaf1afe4e00e0308b71164a8f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.7 Darwin/22.2.0
|
Security for tidy-twitter 1.1.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.