Fetching data from a HTML file
Simon Yan
simonyan at fedoraproject.org
Fri Mar 23 10:08:51 EDT 2012
On Fri, Mar 23, 2012 at 9:52 PM, Sangeet <mrsangeet at gmail.com> wrote:
> Hi,
>
> I've got to fetch data from the snippet below and have been trying to
> match the digits in this to specifically to specific groups. But I can't
> seem to figure how to go about stripping the tags! :(
>
> <tr><td align="center"><b>Sum</b></td><td></td><td align='center'
> class="green">245</td><td align='center' class="red">11</td><td
> align='center'>0</td><td align='center' >256</td><td align='center' >1.496
> [min]</td></tr>
> </table>
>
> Actually, I'm working on ROBOT Framework, and haven't been able to figure
> out how to read data from HTML tables. Reading from the source, is the best
> (read rudimentary) way I could come up with. Any suggestions are welcome!
>
Sangeet,
I think Python comes with its own HTML parser. Can you have a look at this
http://docs.python.org/library/htmlparser.html and see if it helps?
>
> Thanks,
> Sangeet
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Regards,
YeeYaa (Simon Yan)
http://simonyan.fedorapeople.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120323/555582a3/attachment-0001.html>
More information about the Python-list
mailing list