commit d0b6cd1beec06631cb65a41eb3afbb5e00e781ff parent 9ca4696cdfe5063b54478070ad15aca6190acc8e Author: parazyd <parazyd@dyne.org> Date: Sun, 7 Feb 2021 15:16:59 +0100 Add f0ck.me scraper. Diffstat:
A | f0ck.me/scrape.sh | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/f0ck.me/scrape.sh b/f0ck.me/scrape.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# See LICENSE file for copyright and license details. + +first=1 +last=46267 + +for i in $(seq "$first" "$last"); do + u="$(wget -qO- "https://f0ck.me/$i" | grep -Eo 'src="/b/[^ ]*' \ + | sed -e 's/src=//' | tr -d '"')" + wget -c "https://f0ck.me${u}" +done