Introduction
Introduction Statistics Contact Development Disclaimer Help
Add checking archive.org, if some site fails. - annna - Annna the nice friendly…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit abc30b0ab170e1310f8f65195ab4bfcbbb5fa89a
parent 5653768e47a7001b2078713bdac855661fa867c3
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 12 Jan 2025 18:14:55 +0100
Add checking archive.org, if some site fails.
Diffstat:
M fetch-uri | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/fetch-uri b/fetch-uri
@@ -29,4 +29,15 @@ case "$beg" in
*) host="$beg"
esac
grep -qx "$host" "/home/annna/bin/modules/tor/whitelist-from-tor" || usetor=1
-curl -qgsm 5 -L --max-redirs 3 -A "$ua" $opth ${usetor:+--preproxy socks5h://1…
+curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor:+--preproxy sock…
+
+# Taken from: https://github.com/uriel1998/muna/blob/master/muna.sh
+if [ $? -eq 22 ];
+then
+ aiapiuri="http://archive.org/wayback/available?url=${uri}"
+ apiai="$(curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor…
+ notavailable="$(echo "$apiia" | grep -c -e '"archived_snapshots": {}')"
+ aiuri="$(echo "$apiia" | awk -F 'url": "' '{print $3}' 2>/dev/null | a…
+ curl -qgsm 5 --fail -L --max-redirs 3 -A "$ua" $opth ${usetor:+--prepr…
+fi
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.