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
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
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
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.