sample code for parsing html file to get contents of td fields

2005-08-04 Thread yaffa
does anyone have sample code for parsting an html file to get contents of a td field to write to a mysql db? even if you have everything but the mysql db part ill take it. thanks yaffa -- http://mail.python.org/mailman/listinfo/python-list

Re: sample code for parsing html file to get contents of td fields

2005-08-04 Thread William Park
yaffa [EMAIL PROTECTED] wrote: does anyone have sample code for parsting an html file to get contents of a td field to write to a mysql db? even if you have everything but the mysql db part ill take it. I usually use Expat XML parser to extract the field.

Re: sample code for parsing html file to get contents of td fields

2005-08-04 Thread Bill Mill
On 4 Aug 2005 11:54:38 -0700, yaffa [EMAIL PROTECTED] wrote: does anyone have sample code for parsting an html file to get contents of a td field to write to a mysql db? even if you have everything but the mysql db part ill take it. Do you want something like this? In [1]: x = something

Re: sample code for parsing html file to get contents of td fields

2005-08-04 Thread Kent Johnson
yaffa wrote: does anyone have sample code for parsting an html file to get contents of a td field to write to a mysql db? even if you have everything but the mysql db part ill take it. http://www.crummy.com/software/BeautifulSoup/examples.html --