I am trying to scrape data from a stock website, but the problem is that the contents of the table are hidden. The website is http://www.moneycontrol.com/stocks/histstock.php
1.Select Index
2.Select S&P BSE MIDCAP
3.Filter data from Jan 2019 to Jan 2020 to get to the final page
4.I want to scrape the table contents of this page
This is what I have tried using soup
import requests
from bs4 import BeautifulSoup
link='http://www.moneycontrol.com/stocks/hist_index_result.php?indian_indices=25'
html=requests.get(link)
html.status_code #200
raw=html.content
soup=BeautifulSoup(raw,'html.parser') #have tried with xml and html5lib
soup.find_all('table',{'class':'tblchart'})
#output
[<table border="0" cellpadding="0" cellspacing="0" class="tblchart">
</table>]
I have tried using selenium as well but the result is the same.
I am having difficulty trying to get the information.
Any suggestions, answers or a nudge in the right direction will be appreciated.