Skip to content

BeautifulSoup warning #12

@robinsiebler

Description

@robinsiebler

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions