running into this error whilst making a script to pull headlines from a url. (edit; should add i have ensured python 3 and request, lxml, and beautiful soup modules are all installed)
UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). 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 9 of the file news.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor. soup = BeautifulSoup(r.text)
`import requests
from bs4 import BeautifulSoup
import lxml
url = 'http://www.news.google.com'
r = requests.get(url)
soup = BeautifulSoup(r.text)
for story_heading in soup.find_all(class_="story-heading"):
print()`