18 lines
445 B
Python
18 lines
445 B
Python
import requests
|
|
|
|
|
|
def fetch_list(list_url, page):
|
|
headers = {"accept": "application/ld+json"}
|
|
url = list_url + "?page={}".format(page)
|
|
result = requests.get(url, headers=headers)
|
|
return result
|
|
|
|
|
|
if __name__ == '__main__':
|
|
list_url = "https://wyrms.de/user/j12i/books/reading"
|
|
list = fetch_list(list_url, page=1)
|
|
list_dict = list.json()
|
|
for key, val in list_dict.items():
|
|
print("{}: {}".format(key, val))
|
|
|