Clean-up inactive accounts and bots from your Twitter
Project description
Twitter Clean-up
![GitHub Actions: Tests workflow](https://pypi-camo.freetls.fastly.net/f1b70deb4906888b71508b20180597d51fb80feb/68747470733a2f2f6769746875622e636f6d2f63756475636f732f747769747465722d636c65616e75702f776f726b666c6f77732f54657374732f62616467652e737667)
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, write and run tests locally, and format your code with Black:
$ python setup.py test
$ 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.7.tar.gz
(8.0 kB
view hashes)