I need a starter ptr writing python embedded in html.
Miki
miki.tebeka at gmail.com
Sat Aug 7 23:57:50 EDT 2010
On Aug 7, 7:42 pm, "Steven W. Orr" <ste... at syslang.net> wrote:
> I'm ok in python but I haven't done too much with web pages. I have a web page
> that is hand written in html that has about 1000 entries in a table and I want
> to convert the table from entries like this
>
> <tr>
> <td> Some Date String </td>
> <td> SomeTag </td>
> <td>
> <a href="localSubdir"> A Title </a>
> </td>
> <td>
> <a href="http://www.example.com/remote/path/something.html"
> Click
> </a>
> </td>
> <td> Some Comment </td>
> </tr>
>
> to
>
> SomePythonCall('Some Date String',
> 'SomeTag',
> 'localSubdir',
> "http://www.example.com/remote/path/something.html",
> 'Click',
> 'Some Comment')
>
> Can someone tell me what I should look at to do this? Is mod_python where I
> should start or are there things that are better?
Have a look at http://www.crummy.com/software/BeautifulSoup/.
All the best,
--
Miki <miki at mikitebeka.com>
http://mikitebeka.com
The only difference between children and adults is the price of the
toys
More information about the Python-list
mailing list