Re: beutifulsoup

2008-10-30 Thread Stefan Behnel
Peter Pearson wrote: Like you, I struggle with BeautifulSoup Well, there's always lxml.html if you need it. http://codespeak.net/lxml/ Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: beutifulsoup

2008-10-30 Thread Kay Schluehr
On 29 Okt., 17:45, luca72 [EMAIL PROTECTED] wrote: Hello I try to use beautifulsoup i have this: sito = urllib.urlopen('http://www.prova.com/') esamino = BeautifulSoup(sito) luca = esamino.findAll('tr', align='center') print luca[0] tr align=centerth width=5%a

Re: beutifulsoup

2008-10-30 Thread luca72
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

Re: beutifulsoup

2008-10-30 Thread Kay Schluehr
On 30 Okt., 18:28, luca72 [EMAIL PROTECTED] wrote: 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 :

beutifulsoup

2008-10-29 Thread luca72
Hello I try to use beautifulsoup i have this: sito = urllib.urlopen('http://www.prova.com/') esamino = BeautifulSoup(sito) luca = esamino.findAll('tr', align='center') print luca[0] tr align=centerth width=5%a onclick=t('Only|G|BoT|05','#1'); href=##1/a/thtd width=10%44.4MB/tdtd width=90%

Re: beutifulsoup

2008-10-29 Thread Peter Pearson
On Wed, 29 Oct 2008 09:45:31 -0700 (PDT), luca72 [EMAIL PROTECTED] wrote: Hello I try to use beautifulsoup i have this: sito = urllib.urlopen('http://www.prova.com/') esamino = BeautifulSoup(sito) luca = esamino.findAll('tr', align='center') print luca[0] [The following long string has