From 2033e898f0b5cbb03114de9927e7486d118c1e62 Mon Sep 17 00:00:00 2001
From: Raventric <78981416+Ravencentric@users.noreply.github.com>
Date: Sat, 16 Mar 2024 18:36:20 +0530
Subject: [PATCH] docs: links
---
docs/index.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/index.md b/docs/index.md
index 9d00030..aa83dde 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,7 +1,7 @@
Simple read-only Anilist API wrapper @@ -29,7 +29,7 @@ pip install pyanilist PyAnilist offers two main classes: -1. Anilist - Synchronous class +1. `Anilist()` - Synchronous class - `search()` - Search a media ```py @@ -59,13 +59,13 @@ PyAnilist offers two main classes: 13 ``` -2. AsyncAnilist - Asynchronous class +2. `AsyncAnilist()` - Asynchronous class - `search()` - Search a media ```py >>> import asyncio >>> from pyanilist import AsyncAnilist, MediaType - >>> media = asyncio.run(AsyncAnilist().search("Attack on Titan")) + >>> media = asyncio.run(AsyncAnilist().search("Attack on Titan", type=MediaType.ANIME)) >>> media.title MediaTitle(romaji='Shingeki no Kyojin', english='Attack on Titan', native='進撃の巨人') >>> media.title.romaji