Created
September 8, 2012 19:42
-
-
Save philcali/3679070 to your computer and use it in GitHub Desktop.
Puppet script to download latest DoD entries
This file contains hidden or 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
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