tAdd bitreich memecache scraper. - scrapers - scrapers for various sites
HTML git clone https://git.parazyd.org/scrapers
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 98d3213bfe23878f394b4cdb1ebfe4cf0e67b00b
DIR parent d0b6cd1beec06631cb65a41eb3afbb5e00e781ff
HTML Author: parazyd <parazyd@dyne.org>
Date: Sun, 7 Feb 2021 15:18:42 +0100
Add bitreich memecache scraper.
Diffstat:
A bitreich.org/memecache-sync.sh | 11 +++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)
---
DIR diff --git a/bitreich.org/memecache-sync.sh b/bitreich.org/memecache-sync.sh
t@@ -0,0 +1,11 @@
+#!/bin/sh
+# See LICENSE file for copyright and license details.
+
+memes="$(curl -s gopher://bitreich.org/0/memecache/index.meme | cut -d' ' -f2)"
+
+for i in $memes; do
+ if [ -f "$(basename "$i")" ]; then
+ continue
+ fi
+ curl -O "$i"
+done