Started work on bgg_connection module

This commit is contained in:
Yarne Coppens 2024-07-25 19:58:28 +02:00
parent 4f3370efef
commit bfc5adac70

8
bgg_connection.py Normal file
View file

@ -0,0 +1,8 @@
import requests
import xml.etree.ElementTree as ET
from pydantic import HttpUrl
def url_to_xml_object(url: HttpUrl) -> ET.Element:
r = requests.get(url)
root = ET.fromstring(r.content)
return root