jmcarp / robobrowser

BSD 3-Clause "New" or "Revised" License
3.7k stars 337 forks source link

BeautifulSoup Error #77

Open natesire opened 7 years ago

natesire commented 7 years ago

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.

ilovefood2 commented 7 years ago

same issue here

lakshmikantdeshpande commented 7 years ago

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.

jasonslay commented 7 years ago

You do have control of this:

browser = RoboBrowser(parser='html.parser')

ifuchs commented 7 years ago

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'

arianpasquali commented 5 years ago

@ifuchs same thing here.

the first example does not work as it is.