Open natesire opened 7 years ago
same issue here
As far as I know, you cannot get rid of that warning.
You can use the following:
BeautifulSoup([your markup], "html.parser")
you can replace "html.parser" with "lxml" or "html5lib".
Note that you need to have lxml or html5lib installed.
Usually one should go with "lxml", as it is faster.
You do have control of this:
browser = RoboBrowser(parser='html.parser')
I ran the example in the console and got this:
import re from robobrowser import RoboBrowser
browser = RoboBrowser(history=True) browser.open('http://rapgenius.com/') form = browser.get_form(action='/search') form # <RoboForm q=> form['q'].value = 'queen' Traceback (most recent call last): File "
", line 1, in TypeError: 'NoneType' object has no attribute 'getitem'
@ifuchs same thing here.
the first example does not work as it is.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "lxml")
I have no direct control over the code that interacts with BeautifulSoup.