Created
March 27, 2018 22:38
-
-
Save elhoyos/36db35f3d17d2618bfe63889389254ad to your computer and use it in GitHub Desktop.
Print the number of hotel links on a bunch of sitemap xmls
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
while read p; do | |
curl -s "$p" | grep -o "/hotel/" | wc -l | |
done < curl -s https://www.agoda.com/sitemaps.xml | egrep -o "https.*?=.*?_.*?_.*?_.*?_[[:digit:]]*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment