Hello
I try to use beautifulsoup
i have this:
sito = urllib.urlopen( 'http://www.prova.com/')
esamino = BeautifulSoup(s ito)
luca = esamino.findAll ('tr', align='center')
print luca[0]
I need to get the following information:
1)Only|G|BoT|05
2)#1
3)44.4MB
4)Pc-prova.rar
with: print luca[0].a.string i get #1
with print luca[0].td.string i get 44.4MB
can you explain me how to get the others two value
Thanks
Luca
I try to use beautifulsoup
i have this:
sito = urllib.urlopen( 'http://www.prova.com/')
esamino = BeautifulSoup(s ito)
luca = esamino.findAll ('tr', align='center')
print luca[0]
>><tr align="center"> <th width="5%"><a onclick="t('Onl y|G|BoT|05','#1 ');" href="#">#1</a></th><td width="10%">44. 4MB</td><td width="90%" align="left"><f ont color="orange"P c-prova.rar </font></td></tr>
1)Only|G|BoT|05
2)#1
3)44.4MB
4)Pc-prova.rar
with: print luca[0].a.string i get #1
with print luca[0].td.string i get 44.4MB
can you explain me how to get the others two value
Thanks
Luca
Comment