Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/12/2012, 10:58
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Beautiful Soup

Con BS3.

Código Python:
Ver original
  1. from BeautifulSoup import BeautifulSoup
  2. doc = "<html><p>Peter's house</p></html>"
  3. text = BeautifulSoup(doc).get_text()
  4. print text.getText()