Started work on bgg_connection module
This commit is contained in:
parent
4f3370efef
commit
bfc5adac70
1 changed files with 8 additions and 0 deletions
8
bgg_connection.py
Normal file
8
bgg_connection.py
Normal 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
|
||||||
Loading…
Reference in a new issue