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

Doesn't work #5

Open
ultra-taco opened this issue Apr 15, 2021 · 0 comments
Open

Doesn't work #5

ultra-taco opened this issue Apr 15, 2021 · 0 comments

Comments

@ultra-taco
Copy link

ultra-taco commented Apr 15, 2021

tested on python 3.9.4 and after installing bs4 (something the instructions should mention)

$ python downloader.py
C:\Users\Alex\TempGitProjects\khinsider-mp3-downloader\downloader.py:34: GuessedAtParserWarning: 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 34 of the file C:\Users\Alex\TempGitProjects\khinsider-mp3-downloader\downloader.py. To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor.

  soup = BeautifulSoup(urllib2.urlopen(url))
C:\Users\Alex\TempGitProjects\khinsider-mp3-downloader\downloader.py:62: GuessedAtParserWarning: 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 62 of the file C:\Users\Alex\TempGitProjects\khinsider-mp3-downloader\downloader.py. To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor.

  link_soup = BeautifulSoup(urllib2.urlopen(href))

@ultra-taco ultra-taco changed the title Incomplete instructions on repo Doesn't work Apr 15, 2021
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

1 participant