Skip to content

Commit

Permalink
docs: update scraper documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshRitesh12 committed Oct 4, 2024
1 parent e9764fd commit 3c660fb
Showing 1 changed file with 65 additions and 27 deletions.
92 changes: 65 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ pnpm add aniwatch
Example - getting information about an anime by providing it's unique anime id, using anime [Steins;Gate](https://www.imdb.com/title/tt1910272/) with `steinsgate-3` unique anime id as an example.

```javascript
import { getAnimeAboutInfo } from "aniwatch";
import { HiAnime } from "aniwatch";

getAnimeAboutInfo("steinsgate-3")
const hianime = new HiAnime.Scraper();

hianime
.getInfo("steinsgate-3")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand All @@ -114,9 +117,12 @@ getAnimeAboutInfo("steinsgate-3")
#### Sample Usage

```typescript
import { getHomePage } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getHomePage()
hianime
.getHomePage()
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -269,9 +275,12 @@ getHomePage()
#### Sample Usage

```javascript
import { getAnimeAboutInfo } from "aniwatch";
import { HiAnime } from "aniwatch";

getAnimeAboutInfo("steinsgate-3")
const hianime = new HiAnime.Scraper();

hianime
.getInfo("steinsgate-3")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -424,11 +433,14 @@ getAnimeAboutInfo("steinsgate-3")
#### Sample Usage

```javascript
import { getAnimeSearchResults } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getAnimeSearchResults("monster", 1, {
genres: "seinen,psychological",
})
hianime
.search("monster", 1, {
genres: "seinen,psychological",
})
.then((data) => {
console.log(data);
})
Expand Down Expand Up @@ -502,9 +514,12 @@ getAnimeSearchResults("monster", 1, {
#### Sample Usage

```javascript
import { getAnimeSearchSuggestion } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getAnimeSearchSuggestion("one piece")
hianime
.searchSuggestions("one piece")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -548,9 +563,12 @@ getAnimeSearchSuggestion("one piece")
#### Sample Usage

```javascript
import { getProducerAnimes } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getProducerAnimes("toei-animation", 2)
hianime
.getProducerAnimes("toei-animation", 2)
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -634,8 +652,12 @@ getProducerAnimes("toei-animation", 2)
#### Sample Usage

```javascript
import { getGenreAnime } from "aniwatch";
getGenreAnime("shounen", 2)
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

hianime
.getGenreAnime("shounen", 2)
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -703,9 +725,12 @@ getGenreAnime("shounen", 2)
#### Sample Usage

```javascript
import { getAnimeCategory } from "aniwatch";
import { HiAnime } from "aniwatch";

getAnimeCategory("subbed-anime")
const hianime = new HiAnime.Scraper();

hianime
.getCategoryAnime("subbed-anime")
.then((data) => console.log(data))
.catch((err) => console.error(err));

Expand Down Expand Up @@ -780,9 +805,12 @@ getAnimeCategory("subbed-anime")
#### Sample Usage

```javascript
import { getEstimatedSchedule } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getEstimatedSchedule("2024-08-09")
hianime
.getEstimatedSchedule("2024-08-09")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -826,9 +854,12 @@ getEstimatedSchedule("2024-08-09")
#### Sample Usage

```javascript
import { getAnimeEpisodes } from "aniwatch";
import { HiAnime } from "aniwatch";

getAnimeEpisodes("steinsgate-3")
const hianime = new HiAnime.Scraper();

hianime
.getEpisodes("steinsgate-3")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -871,9 +902,12 @@ getAnimeEpisodes("steinsgate-3")
#### Request sample

```javascript
import { getEpisodeServers } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getEpisodeServers("steinsgate-0-92?ep=2055")
hianime
.getEpisodeServers("steinsgate-0-92?ep=2055")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -931,9 +965,12 @@ getEpisodeServers("steinsgate-0-92?ep=2055")
#### Request sample

```javascript
import { getAnimeEpisodeSources } from "aniwatch";
import { HiAnime } from "aniwatch";

const hianime = new HiAnime.Scraper();

getAnimeEpisodeSources("steinsgate-3?ep=230", "hd-1", "sub")
hianime
.getEpisodeSources("steinsgate-3?ep=230", "hd-1", "sub")
.then((data) => console.log(data))
.catch((err) => console.error(err));
```
Expand Down Expand Up @@ -995,9 +1032,10 @@ Don't forget to leave a star 🌟. You can also follow me on X (Twitter) [@rites
This project is licensed under the [MIT License](https://opensource.org/license/mit/) - see the [LICENSE](https://github.com/ghoshRitesh12/aniwatch/blob/main/LICENSE) file for more details.

<!-- <br/>
-->

<img
id="star-history"
src="https://starchart.cc/ghoshRitesh12/aniwatch.svg?variant=adaptive"
alt=""
/> -->
/>

0 comments on commit 3c660fb

Please sign in to comment.