Python Requests package: Handling xml response
requests does not handle parsing XML responses, no. XML responses are much more complex in nature than JSON responses, how you’d serialize XML data into Python structures is not nearly as straightforward. Python comes with built-in XML parsers. I recommend you use the ElementTree API: import requests from xml.etree import ElementTree response = requests.get(url) tree … Read more