sample code for parsing html file to get contents of td fields
William Park
opengeometry at yahoo.ca
Thu Aug 4 15:28:31 EDT 2005
yaffa <yxxxxlxxxxx at gmail.com> 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.
http://home.eol.ca/~parkw/index.html#expat
Expat is everywhere. Python has it and even Gawk has it.
--
William Park <opengeometry at yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
http://freshmeat.net/projects/bashdiff/
More information about the Python-list
mailing list