I am quite newbie into bs4 and I am looking forward to extract a the table of prices.
The main problem I am facing is that in the html page the table element does not appear as so but it is a div
.
I have tried to look by class
, id
but I am not capable of obtaining the prices.
This is what I have tried:
url = "http://www.valoreazioni.com/indici/ftse-mib_ftsemib_mi"
r = requests.get(url)
data = r.text
soup = BeautifulSoup(data,"html5lib")
Here are the filters I have applied in order to obtain the table of prices unsuccessfully
# table=soup.find('div',{'id':'maidMoneyTable'})
# table=soup.find(id='maidMoneyTable')
route=pd.read_html(str(tables),flavor='html5lib')
print(route)
in both cases the return is a no tables were found
Can anyone tell me how can I obtain the desired table?