urllib2.HTTPError: HTTP Error 204: NoContent
philip at semanchuk.com
Sun Oct 19 18:49:42 CEST 2008
On Oct 19, 2008, at 6:13 AM, silk.odyssey wrote:
> I am getting the following error trying to download an html page using
> urllib2.HTTPError: HTTP Error 204: NoContent
> The url is of this type:
> I can open it in my browser without problems.Any ideas on a solution?
Are you changing the user-agent? Some sites sniff user agents and
return different results to browsers than to suspected bots.
I'd try it from here if you post a self-contained sample that
demonstrates the problem. Should only take a couple of lines.
More information about the Python-list