RBookshelf/app/xmlhandler.py
2024-07-19 12:16:43 +01:00

8 lines
191 B
Python

import requests
import xmltodict
import json
def reload():
bookshelf_xml = requests.get("https://magpi.raspberrypi.com/bookshelf.xml")
return xmltodict.parse(bookshelf_xml.content)