vim-geeknote icon indicating copy to clipboard operation
vim-geeknote copied to clipboard

UserWarning: No parser was explicitly specified

Open tarlaw opened this issue 9 years ago • 3 comments

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    beautifulsoup4-4.4.0-py2.7.egg/bs4/__init__.py:166: 
 UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser 
 for this system ("html.parser"). This usually isn't a problem, but if you run this code on
 another system, or in a different virtual environment, it may use a different parser and behave
 differently.
To get rid of this warning, change this:
 BeautifulSoup([your markup])
to this:
 BeautifulSoup([your markup], "html.parser")

When open file.

Change enml.py

 19             soup = BeautifulSoup(contentENML.decode('utf-8'))

to

 19             soup = BeautifulSoup(contentENML.decode('utf-8'), 'html-parser')

resolved.

tarlaw avatar Jan 16 '16 03:01 tarlaw

I attempted to make the above mentioned change, with the suggestion from my error message to use "lxml". However, the issue still persists.

noisufnoc avatar Feb 15 '17 15:02 noisufnoc

I was able to get the error to go away by modifying line 19 of enml.py as recommended above to:

soup = BeautifulSoup(contentENML.decode('utf-8'), 'lxml')

dustinkeib avatar Mar 05 '17 21:03 dustinkeib

I have the sane warning here.

hobbestigrou avatar Sep 28 '17 10:09 hobbestigrou