import requests
import xml.etree.ElementTree as ET
url = 'http:///WebService/EcusWebService.asmx/get_ecar_bya?p_bya14={}'
# GET /WebService/EcusWebService.asmx/get_ecar_bya?p_bya14=string HTTP/1.1
# Host: ecusweb9.efoxconn.com
car_num = 'C20163'
wbdata = requests.get(url.format(car_num))
print(wbdata)
print(wbdata.text)
root = ET.fromstring(wbdata.text)
name = root.find('.//BYA11').text
phone = root.find('.//BYA12').text
print('name', name)
print('phone', phone)
参考
https://stackoverflow.com/questions/69452755/how-to-parse-xml-from-string-in-python