# an-anime-scraper

> A simple anime scraper which provides info on specified animes

Latest version **2.0.0** (published 2021-06-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install an-anime-scraper
pnpm add an-anime-scraper
yarn add an-anime-scraper
bun add an-anime-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-06-09 |
| First published | 2021-06-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | ItzYuzuru |
| Maintainers | itzyuzuru |
| Keywords | anime, scraper, anime, scraper, an-anime-scraper, an, anime, scraper |

## Links

- npm: https://www.npmjs.com/package/an-anime-scraper
- Repository: https://github.com/ItzYuzuruYT/an-anime-scraper
- Homepage: https://github.com/ItzYuzuruYT/an-anime-scraper#readme
- Issues: https://github.com/ItzYuzuruYT/an-anime-scraper/issues
- npm.io page: https://npm.io/package/an-anime-scraper

## Dependencies (2)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.9
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-06-09
- 1.0.3 — 2021-06-08
- 1.0.2 — 2021-06-01
- 1.0.1 — 2021-06-01
- 1.0.0 — 2021-06-01

## README

# Installation
```bash
npm i an-anime-scraper
```

# Description
an-anime-scraper is a scraper created to make anime scraping easier and implement in your programs. Currently only one website (gogoanime.ai) is supported

Important Note: This package is also inspired from [ctk-anime-scraper](https://www.npmjs.com/package/ctk-anime-scraper) package. You can checkout ctk's package by clicking on the name :)

[![NPM](https://nodei.co/npm/an-anime-scraper.png)](https://nodei.co/npm/an-anime-scraper/)


# Usage Examples
- Anime#animeInfo()
```javascript
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.animeInfo('rezero').then(data => {
    console.log(data)
})
```


- Anime#animeInfoFetch()
```javascript
// Example #1
// Example with anime NAME as parameter
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.animeInfoFetch("re:zero").then(data => {
    console.log(data)
})
```
```javascript
// Example #2
// Example with anime URL as parameter
// NOTE: if passing a url instead of name the second parameter must be set true. It is set to false by default
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.animeInfoFetch("https://www1.gogoanime.ai/category/rezero-kara-hajimeru-isekai-seikatsu", true).then(data => {
    console.log(data)
})
```


- Anime#searchAnime()
```javascript
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.searchAnime("horimiya").then(list => {
    console.log(list)
})
```


- Anime#getEpLinks()
```javascript
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.getEpLinks("https://www1.gogoanime.ai/category/rezero-kara-hajimeru-isekai-seikatsu").then(links => {
    console.log(links)
})
```


- Anime#getInfo()
```javascript
const { Anime } = require('an-anime-scraper')
const anime = new Anime("gogoanime.ai")

anime.getInfo("https://www1.gogoanime.ai/category/rezero-kara-hajimeru-isekai-seikatsu").then(data => {
    console.log(data)
})
```



# Methods
```javascript
Anime.animeInfo()   // Gets data of an anime by name. Gives weird results idk
```
```javascript
Anime.animeInfoFetch()   // Gets data of an anime by NAME or URL. More preffered but is case-sensitive like in symbols and spaces...  yea!
```
```javascript
Anime.searchAnime()   // Searches for an anime by name and returns array of all anime links, imgs, names and release dates :L
```
```javascript
Anime.getEpLinks()   // Gets all episode links of the provided anime URL
```
```javascript
Anime.getInfo()   // Gets data of an anime by URL
```

# Update Changes (2.0.0):
- Added new method searchAnime
- GetEpisodes method is now getEpLinks
- animeInfoFetch method can now take url as a parameter by setting second parameter true
- More error handlers added


# Dependencies
[CHEERIO](https://npmjs.com/package/cheerio) | [NODE-FETCH](https://npmjs.com/package/node-fetch)

# Ending
I hope that concludes, here's a cookie 🍪

---
_Source: https://npm.io/package/an-anime-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
