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

errors in web scraping #15

Open
abhilashpython opened this issue Jan 11, 2018 · 1 comment
Open

errors in web scraping #15

abhilashpython opened this issue Jan 11, 2018 · 1 comment

Comments

@abhilashpython
Copy link

c:\programData\Anaconda3\lib\site-packages\bs4_init_.py:181:userwarning:No parser was explicitly specified so i am using the best avaliable Html parser for this system("lxml").This usally 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

@Hyperx837
Copy link

pip install lxml
`from bs4 import BeautifulSoup
import requests

resp = requests.get('https://github.com/')
soup = BeautifulSoup(res.text, 'lxml')`

you just have to specify lxml as an argument while creating the soup object

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