Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeautifulSoup warning #12

Open
robinsiebler opened this issue Oct 3, 2017 · 1 comment
Open

BeautifulSoup warning #12

robinsiebler opened this issue Oct 3, 2017 · 1 comment

Comments

@robinsiebler
Copy link

Running the command "PyLyrics.getLyrics(self.song_artist, self.song_title)" results in the below error:

D:\Python27\lib\site-packages\bs4_init_.py:181: 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.

The code that caused this warning is on line 144 of the file E:/scripts/Python/Practice/PyQt/SimpleMP3Player/smp.py. To get rid of this warning, change code that looks like this:

BeautifulSoup(YOUR_MARKUP})

to this:

BeautifulSoup(YOUR_MARKUP, "html.parser")

markup_type=markup_type))

@sorsater
Copy link

sorsater commented Dec 3, 2017

Having the same problem.

Added the argument in the following file, works for now.
/usr/lib/python3.6/site-packages/PyLyrics/functions.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants