feature/evaluating #2
@@ -1,5 +1,4 @@
|
|||||||
import requests
|
import requests
|
||||||
from requests.auth import HTTPBasicAuth
|
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
from server.backend.schemas.pydantic import settings
|
from server.backend.schemas.pydantic import settings
|
||||||
@@ -44,7 +43,7 @@ def parse_contragents(xml: str):
|
|||||||
df = pd.DataFrame(rows)
|
df = pd.DataFrame(rows)
|
||||||
return df
|
return df
|
||||||
except ET.ParseError:
|
except ET.ParseError:
|
||||||
return "Error during the parsing process"
|
raise
|
||||||
xml_data = fetch_contragents()
|
xml_data = fetch_contragents()
|
||||||
root = parse_contragents(xml_data)
|
root = parse_contragents(xml_data)
|
||||||
print(root)
|
print(root)
|
||||||
Reference in New Issue
Block a user