Advertisement
Guest User

python beautiful soup error

a guest
Jan 28th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $ python example6.py
  2. Traceback (most recent call last):
  3. File "example6.py", line 4, in <module>
  4. tag = Tag(soup, "a", [("href", 'http://mylink.com')])
  5. File "/usr/lib/python2.7/dist-packages/bs4/element.py", line 712, in __init__
  6. self.contains_substitutions = builder.set_up_substitutions(self)
  7. AttributeError: 'str' object has no attribute 'set_up_substitutions'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement