Re: Fetch info from website and write to txt file.

2006-03-06 Thread Bruno Desthuilliers
Pitmairen a écrit : > I want to make a program that get info from a website and prints it out > in a txt file. > > I made this: > > import urllib > f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) > s = f.read() > k = open("test.txt","w") > k.write(s) > k.close() > f.close() > > That

Re: Fetch info from website and write to txt file.

2006-03-06 Thread gene tani
Pitmairen wrote: > I want to make a program that get info from a website and prints it out > in a txt file. > > I made this: > > import urllib > f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) path of even less resistance http://imdbpy.sourceforge.net/ -- http://mail.python.org/mail

Re: Fetch info from website and write to txt file.

2006-03-06 Thread gene tani
Pitmairen wrote: > I want to make a program that get info from a website and prints it out > in a txt file. > > I made this: > > import urllib > f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) > s = f.read() > k = open("test.txt","w") > k.write(s) > k.close() > f.close() > > That saves

Fetch info from website and write to txt file.

2006-03-06 Thread Pitmairen
I want to make a program that get info from a website and prints it out in a txt file. I made this: import urllib f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) s = f.read() k = open("test.txt","w") k.write(s) k.close() f.close() That saves all the html code into the test.txt file.