Tom, thanks a lotg for the help. I found my way out with the code below.
Anyway the content of the page in text format is shown as a whole long text line. I wonder if it is possible to get the line breaks as well ?? Marco $file_output = "./immob24_out.txt"; open(RES, ">$file_output"); use WWW::Mechanize; use HTTP::Cookies; my $mech = WWW::Mechanize->new(agent => "WWW"); $mech->cookie_jar(HTTP::Cookies->new); my $url = "http://www.immobilienscout24.de/"; $mech->get($url); $mech->follow_link(text=>"Wohnung kaufen"); $mech->follow_link(text=>"Bremen"); $mech->click_button( name => "event:doSubmit", value => "Weiter" ); $mech->click_button( name => "event:doSubmit", value => "Ergebnisse anzeigen" ); print RES $mech -> content(format => "text" ); 2007/3/31, Tom Phoenix <[EMAIL PROTECTED]>:
On 3/31/07, marco zucchelli <[EMAIL PROTECTED]> wrote: > Is there a way to get from WWW:Mechanize the same information I would > get using the mouse to select and paste?? Sure; as the FAQ for Mech says, if you aren't getting the same responses from the remote site, it's because you're not sending the same request to the remote site. If you can make the same request, you should get the same response. Check the FAQ for more ideas (mech-dump) on how to debug this. Good luck! http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize/FAQ.pod --Tom Phoenix Stonehenge Perl Training
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/