Extract contents of html cells

Jason Earl jearl at xmission.com
Sat Feb 4 12:19:11 EST 2006


Robot <admnstrtrcrw at yahoo.com> writes:

> Dear all,

> I need to create a script which will extract the contents of 2 cells
> of an html that contains a specified number of cells.Then I need to
> put that contents in another cells of my own html page.How can i do
> that?Any samples, tutorials, advice?

The tricky bit is parsing HTML.  Chances are good that what you want
for that is BeautifulSoup:

http://www.crummy.com/software/BeautifulSoup/

Take a look at the examples there and then feel free to ask more
questions.

Jason



More information about the Python-list mailing list