I am trying to scrape values from a table after changing the option value from the dropdown. I found this stack overflow post scraping a response from a selected option in dropdown list, but I still haven't managed to get it working.
The site I'm trying to scrape is: https://www.myfxbook.com/forex-market/correlation
I'm trying to get the "5-minutes" chart but it still returns the default table of "1 day".
import requests
import pandas as pd
url = "https://www.myfxbook.com/forex-market/correlation"
with requests.Session() as session:
response = session.get(url)
soup = BeautifulSoup(response.content)
data ={"timeScales": "5"}
response = session.post(url, data=data)
soup = BeautifulSoup(response.content)
pd.read_html(str(soup))