Clean-up inactive accounts and bots from your Twitter
Project description
Twitter Clean-up
Tiny script to clean-up your Twitter account:
- Removing users that have not been tweeting for a while
- Soft-blocking bots (blocks and immediately unblocks the account, so it stops following you)
Requirements
- Python 3.6+
- Set environment variables with your Twitter API keys and with Botometer API key:
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN_KEY
TWITTER_ACCESS_TOKEN_SECRET
BOTOMETER_MASHAPE_KEY
Installing
Install the package with:
$ pip install twitter-cleanup
Usage
Run the CLI with twitter-cleanup --help
and follow the on screen instructions.
For example, unfollow everyone that hasn't tweeted in the last 30 days with:
$ twitter-cleanup inactive 30
Or soft-block every bot with:
$ twitter-cleanup bots
Contributing
Please, format your code with Black.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitter-cleanup-0.0.6.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file twitter-cleanup-0.0.6.tar.gz
.
File metadata
- Download URL: twitter-cleanup-0.0.6.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e44d8da64a09180c16bc94bf631301c211027ccda535835275d59049a91224 |
|
MD5 | e39b7609d7c2f34757ae5fad4e92b7f8 |
|
BLAKE2b-256 | 0da343090da5c4c81b14164c02b31c1964c915cf3ea57265f377f7d19ab6f8b9 |
File details
Details for the file twitter_cleanup-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: twitter_cleanup-0.0.6-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621c8612a5c2c1012db1b8d3dfd1de900966f7ae1bcfc188516ff11fbfe68187 |
|
MD5 | d254e30cc809ada52282e4aff92971c8 |
|
BLAKE2b-256 | 12e05281c493bfecf3c274cbd1389ff5bf83abf78a76d9dc1810c4898a0180b6 |