Re: Inconsistent result from urllib.urlopen

2007-04-13 Thread junkdump2861
Laszlo Nagy wrote: > > Any ideas why I don't get the same result from the python script as I > > do from a web browser? This problem seems to be a recent > > development. The scripts I wrote like this worked fine for a while > > and then stopped working within the past couple of weeks. > > > May

Re: Inconsistent result from urllib.urlopen

2007-04-12 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > import urllib > f = urllib.urlopen('http://en.wikipedia.org/wiki/Cain') > data = f.read(999) > f.close() > f1 = open('junk.txt', 'w') > f1.write(data) > f1.close() Did you see the file "junk.txt"? It's an error page from Wikipedia, not the actual content page... Re

Re: Inconsistent result from urllib.urlopen

2007-04-12 Thread Gabriel Genellina
En Thu, 12 Apr 2007 15:25:03 -0300, <[EMAIL PROTECTED]> escribió: > Any ideas why I don't get the same result from the python script as I > do from a web browser? This problem seems to be a recent > development. The scripts I wrote like this worked fine for a while > and then stopped working wit

Re: Inconsistent result from urllib.urlopen

2007-04-12 Thread Laszlo Nagy
> Any ideas why I don't get the same result from the python script as I > do from a web browser? This problem seems to be a recent > development. The scripts I wrote like this worked fine for a while > and then stopped working within the past couple of weeks. > Maybe it has to do something wi