Skip to content

Instantly share code, notes, and snippets.

@VladimirGl
Last active April 3, 2020 16:49
Show Gist options
  • Save VladimirGl/8888a27718842e70e704f39f8ac1eec3 to your computer and use it in GitHub Desktop.
Save VladimirGl/8888a27718842e70e704f39f8ac1eec3 to your computer and use it in GitHub Desktop.
parser_history
#!/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