- I am trying to extract from the URL
- I am trying to get the download from the
firstURL which file_type file_type is DLTINS
Below is the code
import requests
import xml.etree.ElementTree as ET
response = requests.get("https://registers.esma.europa.eu/solr/esma_registers_firds_files/select?q=*&fq=publication_date:%5B2021-01-17T00:00:00Z+TO+2021-01-19T23:59:59Z%5D&wt=xml&indent=true&start=0&rows=100")
root = ET.fromstring(response.text)
I am getting like object <xml.etree.ElementTree.ElementTree at 0x7fd745e84da0>
In response.text I am getting everything in string
ElementTreeobject--that's what you want isn't it?