From 7a598f83ad18a29c344aa5a835247aa3098ccdc8 Mon Sep 17 00:00:00 2001 From: SecondThundeR Date: Tue, 8 Nov 2022 14:15:24 +0300 Subject: [PATCH] docs(README): update multiple_requests example Now, it uses 3 different endpoints for showcase --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3c176603..2d9e51ca 100644 --- a/README.md +++ b/README.md @@ -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='Ликорис Рикоил: Повседневность', ...] # Также возможно использовать этот метод в "ограниченном режиме":