geekpradd / PyLyrics

A Pythonic Implementation of lyrics.wikia.com for getting lyrics of songs
72 stars 27 forks source link

BeautifulSoup warning #12

Open robinsiebler opened 7 years ago

robinsiebler commented 7 years ago

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 commented 7 years ago

Having the same problem.

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