Skip to content

Instantly share code, notes, and snippets.

@rafaelpatro
Forked from CajuCLC/magento_crawler.sh
Created June 6, 2018 14:14
Show Gist options
  • Save rafaelpatro/f1cdf6a638e53972d549405c25c20f21 to your computer and use it in GitHub Desktop.
Save rafaelpatro/f1cdf6a638e53972d549405c25c20f21 to your computer and use it in GitHub Desktop.
Magento Crawler
#!/bin/bash
URL='domain.com'
wget --quiet http://$URL/sitemap.xml --no-cache --output-document - | egrep -o "http://$URL[^<]+" | while read line; do
time curl -A 'Cache Warmer' -s -L $line > /dev/null 2>&1
echo $line
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment