Nothing goes wrong in the example but try with a different input
string and you will get wrong parsing.

This can be using for screen scraping for example without need to
install BeautifulSoup, just using existing web2py functionality.

On May 23, 1:37 pm, Iceberg <iceb...@21cn.com> wrote:
> I ran the code and nothing goes wrong, no exception either.
>
> By the way, what is the user case of this HTMLParser?
>
> Regards,
> Iceberg
>
> On May23, 11:46pm, Massimo Di Pierro <mdipie...@cs.depaul.edu> wrote:
>
> > Anybody interested in helping with this?
>
> > It scrapes an html files and converts into a tree hierarchy of web2py  
> > helpers
>
> > '<div>xxx</div>' -> DIV('xxx')
>
> > It kind of works but fails at three exceptions described in the file.
>
> > Massimo
>
> >  parsehtml.py
> > 1K查看下载

Reply via email to