imgur-rescue-project/archive-scrape/scrape.sh

6 lines
148 B
Bash
Executable File

#!/bin/bash
set -eu
LC_ALL=C grep -RP 'http[^ ]+imgur\.com[^\b ]*' . -o -h | tr -d $'\r' | sed 's/http:/https:/' | sort | uniq > archive-urls.txt