Commit Graph

171 Commits

Author SHA1 Message Date
Mark Eaton 6354876d53 make rate limit check only for non-test runs 2019-05-13 15:32:10 -04:00
Mark Eaton 2f1a34852e add notification when rate limit reached 2019-05-13 14:33:33 -04:00
Hugh Rundle 6b26940ee9 reformat for nicer code using black 2019-05-12 15:40:15 +10:00
Hugh Rundle 9844486601 Amend rate-limit code and add more exception checking
The commit explicitly sets ratelimit_method to "wait" when initiating Mastodon (though this is the default anyway).
This setting allows mastodon.py to handle rate limits for us instead of having to put logic in ephemetoot to deal with it.

Also added some exception/error checking within the toot checking loop, allowing a second attempt for Mastodon API errors, adding a break after a KeyboardInterupt (Ctrl + C), and printing the errors in some cases to help with debugging.

Finally, there is now a 2 second delay between delete calls, just to be a bit nicer to the endpoint server.
2019-05-12 15:34:15 +10:00
Hugh Rundle 9faf31612c updated README 2019-05-10 10:09:41 +10:00
Hugh Rundle bb1f7ffecf fix #7 - comply with API rate limit 2019-05-10 07:58:59 +10:00
Hugh Rundle 357455126c update copyright and README 2019-03-08 16:16:00 +11:00
Hugh Rundle eb0d055275
Merge pull request #3 from MarkEEaton/test-run-argparse
add test run functionality
2019-03-08 15:49:31 +11:00
Mark Eaton 1ef97cfc12 test-run works for reblogs too 2019-03-05 19:08:52 -05:00
Hugh Rundle 6b39f5b8e6
Merge pull request #2 from MarkEEaton/master
run black on ephemetoot.py to improve code readability
2019-02-15 10:24:32 +11:00
Mark Eaton a3b9fa6b56 add the ability to do a test run 2019-02-13 23:22:35 -05:00
Mark Eaton 6082441e9e run black on ephemetoot.py 2019-02-13 16:59:57 -05:00
Hugh Rundle 0d6900eb26
Merge pull request #1 from MarkEEaton/master
Handle IndexError and some boilerplate
2019-01-11 07:36:44 +11:00
Mark Eaton bc054a6918 add some standard python boilerplate 2019-01-10 10:59:51 -05:00
Mark Eaton 92643271d5 handle IndexError when there are no toots in the timeline 2019-01-10 10:57:43 -05:00
Hugh Rundle 3af1296b83 minor typo in readme 2018-12-25 08:29:05 +11:00
Hugh Rundle 8004ce3b0c improved description in README and fixed typos 2018-12-25 08:27:19 +11:00
Hugh Rundle 00fbbff33b fixed typo in README 2018-12-24 15:40:58 +11:00
Hugh Rundle cf670ea79e updated README 2018-12-24 15:35:55 +11:00
Hugh Rundle 96085e499c added .gitignore 2018-12-24 15:32:33 +11:00
Hugh Rundle 483abc9041 first commit 2018-12-24 15:30:56 +11:00