Grazie per le informazioni, la guida a elementtree è molto chiara! Ciao! 2009/2/17 Lawrence Oluyede <l.oluy...@gmail.com>
> 2009/2/17 Paolo Ferretti <pa...@paoloferretti.it>: > > On Tue, Feb 17, 2009 at 09:16, Lawrence Oluyede <l.oluy...@gmail.com> > wrote: > >> > >> Attenzione che BeautifulSoup e` lenta come la morte. Io userei > >> ElementTree per parsare l'XML, > > > > Sì, effettivamente non è velocissima! :-) Sapresti dirmi quanto > ElementTree > > sia più veloce? > > Beh cElementTree e` sicuramente piu` veloce, ma non so di quanto. Ad > ogni modo BeautifulSoup non e` nata per parsare > XML genericamente ma per estrarre informazioni da pezzi di HTML piu` o > meno standard. > > Qui ci sono dei benchmark che mettono a confronto lxml e ElementTree: > <http://codespeak.net/lxml/performance.html> > (notare gli ordini di grandezza che distanziano lxml/cElementTree da > ElementTree...) > > -- > Lawrence, http://oluyede.org - http://twitter.com/lawrenceoluyede > "It is difficult to get a man to understand > something when his salary depends on not > understanding it" - Upton Sinclair > _______________________________________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/mailman/listinfo/python >
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python