Skip to content

Instantly share code, notes, and snippets.

@philcali
Created September 8, 2012 19:42
Show Gist options
  • Save philcali/3679070 to your computer and use it in GitHub Desktop.
Save philcali/3679070 to your computer and use it in GitHub Desktop.
Puppet script to download latest DoD entries
browser
config
user-agent "Mozilla/5.0"
follow-redirects "true"
keep-alive "true"
instructions
[homepage]
---
[homepage]:
go @to="http://dwellingofduels.net/" @base
find @by-css=".moduletable_menu:first-child .menu > li:first-child a"
set @name="latest-songs" @value="@href"
[latest-duel]
[latest-duel]:
go @to="latest-songs"
find @by-css="#mainentries a"
each @name="song" @value="@href"
[process-song]
[process-song]:
go @to="song"
download @to="./12-08/" // "Date changed to latest yy-mm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment