commit 98d3213bfe23878f394b4cdb1ebfe4cf0e67b00b parent d0b6cd1beec06631cb65a41eb3afbb5e00e781ff 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(-)
diff --git a/bitreich.org/memecache-sync.sh b/bitreich.org/memecache-sync.sh @@ -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