regarding html source code

Stefan Behnel stefan_ml at behnel.de
Mon Feb 11 12:45:49 EST 2008


jainshasha wrote:
> well i have create a program which can read out the html source code
> files or any other web page source code files through my program so

Like this?

  >>> from lxml import html
  >>> page = html.parse("http://www.google.com")
  >>> print page.find("//title").text
  Google

http://codespeak.net/lxml

Stefan



More information about the Python-list mailing list