On 08/07/10 23:57, quoth Miki: > On Aug 7, 7:42 pm, "Steven W. Orr" <ste...@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/.
Thanks. But what I'm not seeing is any example of how to make this allowed to generate the html at run time. I think I want to embed my python code into an html file. Beautiful soup seems to allow me to create a preprocessor which I could use through a Makefile to generate the html. I have the feeling I'm missing something. Or do I use this in conjunction with wsgi? -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net
signature.asc
Description: OpenPGP digital signature
-- http://mail.python.org/mailman/listinfo/python-list