Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
docs(README): update multiple_requests example
Browse files Browse the repository at this point in the history
Now, it uses 3 different endpoints for showcase
  • Loading branch information
SecondThundeR committed Nov 8, 2022
1 parent 0cee308 commit 7a598f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ config = ...
shikimori = ShikimoriAPI(config)
await shikimori.open()

chainsaw, lycoris_anime, lycoris_ranobe = await shikimori.multiple_requests([
chainsaw, lycoris_chisato, lycoris_ranobe = await shikimori.multiple_requests([
shikimori.animes.get_all(search="Бензопила"),
shikimori.animes.get_all(search="Ликорис"),
shikimori.ranobes.get_all(search="Ликорис")
shikimori.characters.search("Тисато Нисикиги"),
shikimori.ranobes.get_all(search="Ликорис"),
])
print(chainsaw)
print(lycoris_anime)
print(lycoris_chisato[:1])
print(lycoris_ranobe)

await shikimori.close()

# [Anime(id=44511, name='Chainsaw Man', russian='Человек-бензопила', ...]
# [Anime(id=50709, name='Lycoris Recoil', russian='Ликорис Рикоил', ...]
# [Character(id=204621, name='Chisato Nishikigi', russian='Тисато Нисикиги', ...]
# [Ranobe(id=151431, name='Lycoris Recoil: Ordinary Days', russian='Ликорис Рикоил: Повседневность', ...]

# Также возможно использовать этот метод в "ограниченном режиме":
Expand Down

0 comments on commit 7a598f8

Please sign in to comment.