Skip to main content

Clean-up inactive accounts and bots from your Twitter

Project description

🇧🇷 Versão em português do Brasil

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.5.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file twitter-cleanup-0.0.5.tar.gz.

File metadata

  • Download URL: twitter-cleanup-0.0.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for twitter-cleanup-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a980791946a6b10dfa13c14e352c237a2952f29a431743439889b68bb8f93a70
MD5 57f47e141d5b6f8fd6a41563727274c9
BLAKE2b-256 6069bdc02d3855d2f711342eb38c754aac1654e45abd4240cd9e0ac7685bc964

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page