Close
As long as you dont use more than 5 connections it would work...

Although you would probably have less trouble if you just dl the torrent ;)

moe one :
http://www.deadfrog.us/index.php?act=entry&id=9992

ero one :
http://www.deadfrog.us/index.php?act=entry&id=10112

script included in this (and its updates on rapidshare) will basically create an "offline-danbooru" ... So its probably more than your simple dl script could do! ;)