euglug.org

[Eug-lug] simple downloading in perl

작성자

카테고리:



Christoph OttoWed Dec 15 12:38:16 PST 2004

larry price wrote:

>You could try the Net::FTP module from CPAN, and I'm pretty sure there
>are wrappers for curl and wget in there as well.
>
>As far as including it in a distribution to others..., this might help 
>http://www.indigostar.com/pxman.htm
>
>In python of course, ftplib is part of the standard library and
>available everywhere you go. (batteries included ;-)
>
>Larry-who-spent-too-much-time-getting-intimate-with-binding-substitutions-ly
>yours
>
>ps.  Other people's perl may be hell, but other people's python isn't
>necessarily better, unless the other person is extremely smart AND
>considerate.
>
>
Thanks.  For making everything maximally self-contained, perl2exe looks like
what I'm after.  Too bad it's US$150 for a *nix or windows license to make
non-crippled gui (hey, it's for windows users) binaries.  The programmers
certainly have to eat, but that's too much for a free project.  It's 
also too
bad that perlcc isn't past the "guaranteed to explode for anything more
complex than hello world" stage.
I guess that using the eventual script as a windows user will have to 
involve
a non-trivial setup.

BTW, I meant that I need to get files via http.  The script gets songs and
various information about them from ocremix.org, so ftp won't work.  From my
googling, it looks like libwww-perl (or LWP, as the man pages like to 
call it)
is what I'm after.