Fwd: Hello
Fredrik Lundh
fredrik at pythonware.com
Thu Jul 17 06:26:42 EDT 2008
spandana g wrote:
> HTTPError: HTTP Error 999: Unable to process request at this time --
> error 999
>
> Previously i got the error which I have attached below when I use just
> urlopen . But now when I use this http request
> user_agent='Mozilla/3.0(compatible;MISE 5.5;Windows NT)'
> headers={'User-Agent':user_agent}
> req=urllib2.Request(url,None,headers)
> file_source.write(urllib2.urlopen(req).read()
>
> its still giving the error mentioned above .. Iam accessing the yahoo
> search engine .. link is "http://search.yahoo.com/search?n=20&p=ipod
> <http://search.yahoo.com/search?n=20&p=ipod>"
>
> I'm attaching the python file i have written just have a look and
> suggest me something that works for this query
they have an official API, you know:
http://developer.yahoo.com/search/boss/
here's an article showing how to install and use it:
http://lethain.com/entry/2008/jul/11/search-recipes-for-yahoo-s-boss-in-python/
</F>
More information about the Python-list
mailing list