Skip to content

Instantly share code, notes, and snippets.

View aozimkov's full-sized avatar
❄️
Happy coding!

Aleksey Ozimkov aozimkov

❄️
Happy coding!
View GitHub Profile
@aozimkov
aozimkov / scrape-sitemap.sh
Created October 11, 2019 16:30 — forked from pix0r/scrape-sitemap.sh
Use wget to scrape all URLs from a sitemap.xml Usage: scrape-sitemap.sh http://domain.com/sitemap.xml
#!/bin/sh
SITEMAP=$1
if [ "$SITEMAP" = "" ]; then
echo "Usage: $0 http://domain.com/sitemap.xml"
exit 1
fi
XML=`wget -O - --quiet $SITEMAP`