Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix nitter instances and simplify the selection method. - annna - Annna the nic…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit bac7bf93453c656392264128f92af3358dc59a2b
parent fdba4b1c2bf7e19008860141ce325a1aadad70f8
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 21 Aug 2021 12:33:03 +0200
Fix nitter instances and simplify the selection method.
Diffstat:
A modules/nitter-instances/gen-insta… | 10 ++++++++++
M nitter-instance | 12 ++++--------
2 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/modules/nitter-instances/gen-instances.sh b/modules/nitter-instanc…
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cat nitter.wiki/Instances.md \
+ | grep '^| .* | \[.*' \
+ | cut -d '|' -f 3 \
+ | sed 's, \[\(.*\)\].*,\1,' \
+ > instances.txt
+
+printf "Now edit instances.txt for working ones.\n"
+
diff --git a/nitter-instance b/nitter-instance
@@ -1,13 +1,9 @@
#!/bin/sh
#
-# Do no forget to regularily check out the wiki git for updates.
+# Do no forget to regularily check out the wiki git for updates
+# and run gen-instances.sh for a new instances file.
#
-nitterwikibase="/home/annna/bin/modules/nitter-instances/nitter.wiki"
-cat "${nitterwikibase}"/Instances.md \
- | grep '^\* \[' \
- | sed 's,.*(\([^ )]*\)).*,\1,' \
- | grep -v "\.onion\|\.i2p" \
- | sed 's,/$,,g; s,^https://,,g;' \
- | shuf -n 1
+nitterinstances="/home/annna/bin/modules/nitter-instances/instances.txt"
+shuf -n 1 "${nitterinstances}"
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.