Skip to content

Instantly share code, notes, and snippets.

@megabayt
Created November 14, 2020 09:14
Show Gist options
  • Save megabayt/ca49c8659013c273aeb90bd0ad83128d to your computer and use it in GitHub Desktop.
Save megabayt/ca49c8659013c273aeb90bd0ad83128d to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in {1..650}
do
if [ $(curl -LI https://virtualland.ru/rg-semenovskiy-park/flats/1-$i -o /dev/null -w '%{http_code}\n' -s) == "200" ]; then
echo "https://virtualland.ru/rg-semenovskiy-park/flats/1-$i";
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment