efemettotoot elimina i toot di Mastodon che sono più vecchi di un certo numero di giorni tranne quelli che:: sono appuntati; includono alcuni hashtag; hanno una certa visibilità; sono elencati individualmente https://mastodon.it
Go to file
Hugh Rundle 87a7791fc0 Create CNAME 2020-08-25 08:55:58 +10:00
.github update templates 2020-07-04 14:23:39 +10:00
bin add --retry-mins option 2020-08-23 16:53:03 +10:00
docs Create CNAME 2020-08-25 08:55:58 +10:00
lib add --retry-mins option 2020-08-23 16:53:03 +10:00
.gitignore resolve #23 include datestamp option for all actions 2020-06-20 20:52:34 +10:00
CODE_OF_CONDUCT.md update CoC contact email 2020-07-05 17:21:07 +10:00
LICENSE first commit 2018-12-24 15:30:56 +11:00
README.md re-organise docs 2020-08-24 21:22:39 +10:00
contributing.md make minor formatting changes to docs 2020-07-04 15:57:59 +10:00
ephemetoot.scheduler.plist add launchd scheduling 2020-04-25 08:53:19 +10:00
example-config.yaml Fix non-absolute archive filepaths breaking 2020-07-18 15:45:20 +10:00
setup.py add --retry-mins option 2020-08-23 16:53:03 +10:00

README.md

🥳 ==> 🧼 ==> 😇

PRs Welcome

ephemetoot is a Python command line tool for deleting old toots.

Prior work

The initial ephemetoot script was based on this tweet-deleting script by @flesueur

ephemetoot relies heavily on the Mastodon.py package by @halcy

Usage

You can use ephemetoot to delete Mastodon toots that are older than a certain number of days (default is 365). Toots can optionally be saved from deletion if:

  • they are pinned; or
  • they include certain hashtags; or
  • they have certain visibility; or
  • they are individually listed to be kept

Rate limits

As of Mastodon v2.7.2 the Mastodon API has a rate limit of 30 deletions per 30 minutes. mastodon.py automatically handles this. If you are running ephemetoot for the first time and/or have a lot of toots to delete, it may take a while as the script will pause when it hits a rate limit, until the required time has expired. You can use the --pace flag to slow down ephemetoot so that it never hits the limit - this is recommended on your first run. It will not speed up the process but will smooth it out.

Note that the rate limit is per access token, so using ephemetoot for multiple accounts on the same server shouldn't be a big problem, however one new user may delay action on subsequent accounts in the config file.

ASCII / utf-8 errors

Prior to Python 3.7, running a Python script on some BSD and Linux systems may throw an error. This can be resolved by:

  • setting a locale that encodes utf-8, by using the environment setting PYTHONIOENCODING=utf-8 when running the script, or
  • upgrading your Python version to 3.7 or higher. See Issue 11 for more information.

Contributing

For all bugs, suggestions, pull requests or other contributions, please check the contributing guide.

License

This project and all contributions are licensed under the GPL 3.0 or future version