I'm using Python's request
module to scrape this website: http://reports.ieso.ca/public/Adequacy2/PUB_Adequacy2_20200114.xml
import requests
def get_info(date=None):
headers = {
"Content-Type": "text/html"
}
response = requests.get('http://reports.ieso.ca/public/Adequacy2/PUB_Adequacy2_20200114.xml', headers=headers,verify=False)
print(response.text)
return response
get_info()
Now it returns XML, which I understand. But the HTML structure I see when I inspect that website is different, and much better in it's structure.
Is there a way to get that data with requests instead of the XML data? Or other alternatives?