Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> def convert(html):
- ... return BeautifulSoup(html,
- ... convertEntities=BeautifulSoup.HTML_ENTITIES,
- ... markupMassage=hexentityMassage).contents[0].string
- ...
- >>> soup = convert(string)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "<stdin>", line 3, in convert
- AttributeError: type object 'BeautifulSoup' has no attribute 'HTML_ENTITIES'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement