Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. >>> def convert(html):
  2. ... return BeautifulSoup(html,
  3. ... convertEntities=BeautifulSoup.HTML_ENTITIES,
  4. ... markupMassage=hexentityMassage).contents[0].string
  5. ...
  6. >>> soup = convert(string)
  7. Traceback (most recent call last):
  8. File "<stdin>", line 1, in <module>
  9. File "<stdin>", line 3, in convert
  10. AttributeError: type object 'BeautifulSoup' has no attribute 'HTML_ENTITIES'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement