The parser used by TAG cannot handle unbalanced tags in HTML. You'll have
to switch to a more sophisticated parser, such as Beautiful Soup.
Anthony
On Tuesday, April 12, 2016 at 3:50:52 AM UTC-4, Alessio Varalta wrote:
>
> I retrieve a file with requests and after i make
>
> r = requests.get(href)
> parsed_html=TAG(r.text)
>
> I received this error
>
> File "C:\Users\Alessio\Documents\Ethical\web2py\gluon\html.py", line 2723,
> in handle_endtag
> raise RuntimeError("unable to balance tag %s" % tagname)
> RuntimeError: unable to balance tag p
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.