Last active
April 3, 2020 16:49
-
-
Save VladimirGl/8888a27718842e70e704f39f8ac1eec3 to your computer and use it in GitHub Desktop.
parser_history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt update; | |
apt-install -y wget zip; | |
mkdir -p results; | |
cd results; | |
rm links.txt | |
touch links.txt | |
for url in $(seq $1 $2); do | |
echo "https://foto.pamyat-naroda.ru/detail/$url" >> links.txt | |
done | |
wget --header="Accept: text/html" --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" -i links.txt -nc --wait=2 --content-on-error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment