curl 'https://gutendex.com/books/?search=frankenstein&ids=84%2C1342&languages=en%2Cfr&mime_type=application%2Fepub%2Bzip&topic=science+fiction&author_year_start=1800&author_year_end=1900'
import requests
resp = requests.get(
"https://gutendex.com/books/",
params={
'search': 'frankenstein',
'ids': '84,1342',
'languages': 'en,fr',
'mime_type': 'application/epub+zip',
'topic': 'science fiction',
'author_year_start': '1800',
'author_year_end': '1900',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("gutendex")
result = api.fetch("books/", search="frankenstein", ids="84,1342", languages="en,fr", mime_type="application/epub+zip", topic="science fiction", author_year_start=1800, author_year_end=1900)
for item in result:
print(item)
const resp = await fetch("https://gutendex.com/books/?search=frankenstein&ids=84%2C1342&languages=en%2Cfr&mime_type=application%2Fepub%2Bzip&topic=science+fiction&author_year_start=1800&author_year_end=1900");
const data = await resp.json();