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

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 pa

Re: beutifulsoup

2008-10-29 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] > > >> >>href="#">#144.4MB >>align="left"> Pc-pr

Re: beutifulsoup

2008-10-29 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-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 str