I'm trying parse XML from URL, but i got error FileNotFoundError
where I'm doing wrong?
Here's my code:
import xml.etree.ElementTree as ET
import requests
url = "http://cs.stir.ac.uk/~soh/BD2spring2022/assignmentdata.php"
params = {'data':'spurpyr'}
response = requests.get (url, params)
xml_content = response.content
tree = ET.parse(xml_content)
root = tree.getroot()
print(root.tag)