2009-11-07 7 views

Répondre

4

il suffit de tourner dans une chaîne avec str:

from BeautifulSoup import BeautifulSoup 
doc = "<html><h1>Heading</h1><p>Text" 
soup = BeautifulSoup(doc) 

str(soup) 

(de the docs)