From 4469a7ca5b8e1da43784881c3e32435604b8be61 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 23 Jan 2022 16:35:11 +0100 Subject: [PATCH] tools: awesome_bot: add 1s delay between requests, fix awesome_bot installation docs - prevent HTTP 429 error on github projects --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9a22b381..1b391fe0 100755 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f SHELL = /bin/bash -AWESOME_BOT_OPTIONS = --allow-redirect --skip-save-results --allow 202 --white-list flaskbb.org,nitter.net,airsonic.github.io/docs/apps +AWESOME_BOT_OPTIONS = --allow-redirect --request-delay 1 --skip-save-results --allow 202 --white-list flaskbb.org,nitter.net,airsonic.github.io/docs/apps all: check_all @@ -21,9 +21,9 @@ check_syntax_diff: awesome_bot -f temp.md $(AWESOME_BOT_OPTIONS) # check dead links -# https://github.com/dkhamsing/awesome_bot +# sudo apt install ruby && install --user-install awesome_bot awesome_bot: - awesome_bot -f README.md $(AWESOME_BOT_OPTIONS) + ~/.local/share/gem/ruby/2.7.0/bin/awesome_bot -f README.md $(AWESOME_BOT_OPTIONS) # check date of last commit for github.com repository URLs check_github_commit_dates: