Skip to content

Instantly share code, notes, and snippets.

@guiferrpereira
Created April 15, 2016 18:02
Show Gist options
  • Save guiferrpereira/3d9ebcb7006e8eb8e3742a8d9d40ce5b to your computer and use it in GitHub Desktop.
Save guiferrpereira/3d9ebcb7006e8eb8e3742a8d9d40ce5b to your computer and use it in GitHub Desktop.
Get all events from some page and return titles
#!/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