Detecting BeautifulSoup freeze
Bug #1295155 reported by
Karthik Venkateswaran
This bug report is a duplicate of:
Bug #1270611: bs4 crashes with AttributeError: 'NoneType' object has no attribute 'next_element'.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
New
|
Undecided
|
Unassigned |
Bug Description
Parsing the following site using beautifulsoup with html5lib parser hangs but the same works well with html.parser
Site: http://
#contents is fetched via urllib2
soup = BeautifulSoup(
soup('a') hangs
but the following works just fine
soup = BeautifulSoup(
soup('a')
> [.....]
Is there something wrong with what i am doing or is there a way to detect if soup will fail before making the call to soup('a')
Pastebin reference:
http://
Thanks
To post a comment you must log in.