Skip to main content

tidy-twitter helps to clean up user's Twitter history.

Project description

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.

  1. Clone this repo

  2. Create virtual env (Python 3.9 has been used successfully)

  3. Run the following to install all required dependencies and the program:

      pip install -e .
    
  4. 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

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

tidy-twitter-1.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidy_twitter-1.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tidy-twitter-1.1.1.tar.gz.

File metadata

  • Download URL: tidy-twitter-1.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for tidy-twitter-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1be3f7bc70253e36398d1cfb882f84d53b5cd0cedfd245a9f5f5a0705e04b6e7
MD5 e40c1bb813f88ddec176c34307752b14
BLAKE2b-256 492965b0ca3109f49b2c0bca433c06e7bb15f3c8c6fd72f81b52160fb9a61e6d

See more details on using hashes here.

File details

Details for the file tidy_twitter-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: tidy_twitter-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for tidy_twitter-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f080d7ecfc36ae6de7224f3b37b2613a17c64c74c852c8f5d8750927cb751ddd
MD5 fff381ff00b3fa55c15c7f69313a8c2a
BLAKE2b-256 abe4a521bcb720d2d6a30778677a4918ff720ff259d6d272d2d820938daf2ec6

See more details on using hashes here.

Supported by

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