Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: LWP and WWW:Mechanize not working (you think)

by Anonymous Monk
on Jun 04, 2013 at 03:06 UTC ( [id://1036868]=note: print w/replies, xml ) Need Help??


in reply to LWP and WWW:Mechanize not working

What am I doing wrong with my approach? Is there a way to fix/bypass this?

Well, the code you posted wouldn't generate the error message you posted, so this is where you're going wrong, try

mech-dump --links http://www.google.com/googlebooks/uspto-patents-grants-text.html

OTOH, why are you even bothering to write a program for this, wget/curl/httrack/lwp-rget... already do this

  • Comment on Re: LWP and WWW:Mechanize not working (you think)

Replies are listed 'Best First'.
Re^2: LWP and WWW:Mechanize not working (you think)
by AI Cowboy (Beadle) on Jun 04, 2013 at 03:15 UTC
    What do you mean the code have wouldn't generate that output? I ran the code and copied the output directly - that is exactly what I got.

    I'll take a look at the links you provided.

      Yeah, see LWP and WWW:Mechanize not working :) so getprint gave you diagnostic error message ( WSAEWOULDBLOCK 10035 Resource temporarily unavailable ) seems to be working :)

Re^2: LWP and WWW:Mechanize not working (you think)
by AI Cowboy (Beadle) on Jun 04, 2013 at 03:26 UTC
    I tried mech dump, and it gave a nearly identical error message - here it is:

    Error GETing http://www.google.com/googlebooks/uspto-patents-grants-text.html: S tatus read failed: A non-blocking socket operation could not be completed immedi ately. at C:\Perl64\bin/mech-dump line 103.

    Also, I can't seem to locate a way to download curl, wget, or either of the others - can you help me out? Sorry for the kiddy question, I've gotten really used to easy downloads where the download is a big button on the page :P
        No, neither a proxy or firewall are up at the moment. Maybe Windows 8 is screwing it up somehow?
Re^2: LWP and WWW:Mechanize not working (you think)
by Anonymous Monk on Jun 04, 2013 at 03:19 UTC
    oh, didn't see the getprint in there :) OTOH
    $ perl -MLWP::Simple -e " getprint( shift ) " http://foo.bar.baz 500 Can't connect to foo.bar.baz:80 (Bad hostname) <URL:http://foo.bar +.baz>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-24 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found