Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Download a bunch of gkrellm2 themes in one fell swoop.

by beppu (Hermit)
on Sep 10, 2004 at 23:00 UTC ( #390205=CUFP: print w/replies, xml ) Need Help??

Here's a perl one-liner for all you gkrellm fans out there:

curl 'http://www.muhri.net/gkrellm/nav.php3?node=gkrellmall&sort=name' | perl -ne 'print join"\n",m{href=(/gkrellm/.+?gz)}g' | perl -ne 'qx(wget http://www.muhri.net/$_); sleep 2'

This will download all the gkrellm2 themes at http://www.muhri.net/ . Enjoy.

PS: I intentionally didn't enclose the one-liner in a <code> block, because the line wrapping would've inserted "+"s into the string. This would've made it a pain to cut and paste into your shell.

  • Comment on Download a bunch of gkrellm2 themes in one fell swoop.

Replies are listed 'Best First'.
Re: Download a bunch of gkrellm2 themes in one fell swoop.
by Aristotle (Chancellor) on Sep 11, 2004 at 01:33 UTC

    At least do both. As is there's no download link.

    Makeshifts last the longest.

Re: Download a bunch of gkrellm2 themes in one fell swoop.
by jdalbec (Deacon) on Sep 11, 2004 at 15:10 UTC
    If you put it into a <code> block then a "Download Code" link will appear below your post. Clicking on the link displays the code without the "+"s and you can cut-and-paste from there.
    curl 'http://www.muhri.net/gkrellm/nav.php3?node=gkrellmall&sort=name' + | perl -ne 'print join"\n",m{href=(/gkrellm/.+?gz)}g' | perl -ne 'qx +(wget http://www.muhri.net/$_); sleep 2'
Re: Download a bunch of gkrellm2 themes in one fell swoop.
by elwarren (Curate) on Sep 20, 2004 at 22:34 UTC
    curl, perl, and wget? You're a madman :-) Why not do it all with wget? wget -rl1 -A gz -nH -nd -w 2 'http://www.muhri.net/gkrellm/nav.php3?node=gkrellmall&sort=name' Hey, you know what would be cool? We've got find2perl, we should write wget2perl. That would be cool :-)
      That's cool I didn't know wget could be coerced to do that.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://390205]
Approved by Paulster2
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-09-26 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?