#perl - Tue 27 Feb 2007 between 17:30 and 17:37



LinuxMafiaso i take a look at them
content , is what i want?
Davemanhaha hobbs, behold, the torture :P
rindolfLinuxMafia: yes.
LinuxMafiarindolf, then what is lwp-download.
DavemanWWW::Mechanize?
rindolfLinuxMafia: it's a script I think.
alesterLinuxMafia: What are you trying to do with the page once you get it?
hobbsLinuxMafia: something completely irrelevant
Davemanhaha
Gumbybrain: wget -q http://linuxmafia/
GumbyBRAINLinuxmafia, so, do you think q is a babe.
Davemanhah
LinuxMafiai do this let's say $req = HTTP::Request->new(GET => "path/to/file");
scrottieperlbot: seen buu?
rindolf.seen buu
frogbotbuu was last seen 2 hours, 34 minutes and 50 seconds ago, saying "BIIIIIIINGOS." in #perl on FreeNode.
alesterLinuxMafia: What are you going to do with the page when you get it?
actionCPAN upload: XML-Tiny-1.05 (+++ ) by DCANTRELL
CPANupload: XML-Tiny-1.05 (+++ ) by DCANTRELL
alesterThis is not a pointless, irrelevant question.
LinuxMafiaand alester what page?
alesterYou are trying to fetch a file, right?
stpierreany WWW::Mechanize gurus in the house?
alesterstpierre: I wrote it.
actionscrottie giggles
scrottiegiggles
stpierreI *guess* that'll do :)
LinuxMafiaalester, no i extract a link with WWW::Mechanize , and now i want to download it
alesterOK, then you can do it with mech
follow the link, and then use $mech->save_content()
hobbsLinuxMafia: so replace "no" with "yes"
LinuxMafiaalester, can i tell it where to save?
stpierrei'm trying to get it to do the right thing with some forms generated with PHP where the form elements are named things like 'object[lastname]', complete with square brackets
alesterLinuxMafia: You think I'd make it so that it only saves where it wants to save it, without consideirng the wishes of the pgorammer?
stpierre$mech->submit_form(with_fields => {"object[lastname]" => "Test"}) complains that no matching form was found
hobbsLinuxMafia: you can STILL save the data wherever you want, the same as you could the last 20 times you asked.
alesterstpierre: How does the page look when dumped with mech-dump?
stpierrei haven't tried that -- i'm a mechanize n00b
LinuxMafiahobbs, but how?
alestertry mech-dump
stpierregimme a few secs

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 

IrcArchive