Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Error when calling $mechanize->content;

by marto (Cardinal)
on Apr 18, 2018 at 14:15 UTC ( [id://1213120]=note: print w/replies, xml ) Need Help??


in reply to Error when calling $mechanize->content;

Your first example is missing single quotes for the working URL, your second example has a typo in the URL which returns 'This page was not found' (Google translated).

https://www.aabenraa.dk/politik-og-dialog/politiske-udvalg/arbejdsmark +edsudvalget/medlemmer https://www.aabenraa.dk/politik-og-dialog/politisk-udvalg/arbejdsmarke +dsudvalget/medlemmer

Even when setting a valid UA string, I get the ASP.net error 'NullReferenceException: Object reference not set to an instance of an object.]', and some debug info best kept away from prying eyes. There's certainly something making it difficult to screenscrape. Perhaps they don't want you to.

Log In?
Username:
Password:

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

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

    No recent polls found