You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
490B

  1. from datetime import timedelta
  2. from mastodon import Mastodon
  3. import autoreject
  4. import secret
  5. masto = Mastodon(
  6. access_token = secret.ACCESS_TOKEN,
  7. api_base_url = secret.API_BASE
  8. )
  9. criteria = {
  10. "min_follows": 10,
  11. "min_followers": 10,
  12. "max_follows": 100,
  13. "max_followers": 100,
  14. "has_bio": True,
  15. "has_avatar": True,
  16. "min_posts": 10,
  17. "max_posts": 100,
  18. "min_age": timedelta(days=7),
  19. "no_bots": True
  20. }
  21. autoreject.reject_follows(masto, criteria)