Issue
When I use this code
soup = BeautifulSoup(page.text, 'lxml')
I got this type of error
super(BeautifulSoup, self).__init__(*args, **kwargs)
TypeError: __init__() got multiple values for argument 'features'
But when I use only
soup = BeautifulSoup(page.text)
Its work well but didn't show in html.
How to fix it...?
Solution
BeautifulStoneSoup
is not the same thing as BeautifulSoup
, and is probably not the one you want. BeautifulStoneSoup
is specifically designed for XML and thus does not accept a parser. BeautifulSoup
can handle several different formats, including HTML.
I suggest you replace BeautifulStoneSoup
withBeautifulSoup
.
Answered By - Tim Roberts
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.