Created
April 15, 2016 18:02
-
-
Save guiferrpereira/3d9ebcb7006e8eb8e3742a8d9d40ce5b to your computer and use it in GitHub Desktop.
Get all events from some page and return titles
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
#!/usr/bin/env bash | |
wget=/usr/bin/wget | |
for i in `seq 9000 12000` | |
do | |
echo "$i" | |
cool="https://results.chronotrack.com/event/results/event/event-$i" | |
wget -qO- $cool | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment