beutifulsoup

luca72 lucaberto at libero.it
Thu Oct 30 13:28:52 EDT 2008


hello
Another stupit question instead of use
sito = urllib.urlopen('http://www.prova.com/')
esamino = BeautifulSoup(sito)

i do
 sito = urllib.urlopen('http://onlygame.helloweb.eu/')
 file_sito = open('sito.html', 'wb')
 for line in sito :
     file_sito.write(line)
 file_sito.close()

how can i pass the file sito.html to beautifulsoup?

Regards

Luca




More information about the Python-list mailing list