dimanche 22 mars 2020

i am trying to run the following code by web scraping but it gives me a following error message:

from urllib.request import urlopen as uReq

my_url="https://www.moneycontrol.com/india/stockpricequote/refineries/relianceindustries/RI"

uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html,"html.parse")

containers = page_soup.find_All("div",{"class":"D(ib) Mb(2px)"})
cont = page_soup.find_all("div", {"class":"price_chartpg"})
print(len(containers))

Error: raise FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parse. Do you need to install a parser library?




Aucun commentaire:

Enregistrer un commentaire