G
Guest
Hi All,
I'm trying to write a news retrieval client in python.
I'm going to get the news from google's news service.
However, when I run the following code, google gives me a 403 error.
Is it google, or urllib2? Or is it the code?
I can parse the 'contents' variable, I just need to know what is going
wrong.
THX,
Brandon
#startofcode
import urllib2,htmldata
url='http://news.google.com/news'#?ned=tus&rec=0'
contents = urllib2.urlopen(url).read()
Print contents
#endofcode
----------
Feel free to contact me for technical support, or just to chat; I always
have time to talk and help, and an open ear.
Email:[email protected]
Skype:brandon.mcginty
Msn:[email protected]
Aim:brandonmcginty (Not currently available.)
Cell:4802025790 (Weekends and nights only, please.)
"Kindness is a language that the deaf can hear and the blind can see."
Mark Twain
I'm trying to write a news retrieval client in python.
I'm going to get the news from google's news service.
However, when I run the following code, google gives me a 403 error.
Is it google, or urllib2? Or is it the code?
I can parse the 'contents' variable, I just need to know what is going
wrong.
THX,
Brandon
#startofcode
import urllib2,htmldata
url='http://news.google.com/news'#?ned=tus&rec=0'
contents = urllib2.urlopen(url).read()
Print contents
#endofcode
----------
Feel free to contact me for technical support, or just to chat; I always
have time to talk and help, and an open ear.
Email:[email protected]
Skype:brandon.mcginty
Msn:[email protected]
Aim:brandonmcginty (Not currently available.)
Cell:4802025790 (Weekends and nights only, please.)
"Kindness is a language that the deaf can hear and the blind can see."
Mark Twain