RBookshelf/xmlhandler.py

9 lines
191 B
Python
Raw Normal View History

2024-07-19 13:14:56 +02:00
import requests
import xmltodict
import json
def reload():
bookshelf_xml = requests.get("https://magpi.raspberrypi.com/bookshelf.xml")
return xmltodict.parse(bookshelf_xml.content)