Socket
Socket
Sign inDemoInstall

ctk-anime-scraper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ctk-anime-scraper - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

src/Scrapers/4anime.js

2

.upm/store.json

@@ -1,1 +0,1 @@

{"version":2,"languages":{"nodejs-npm":{"specfileHash":"3471ca51abe0538f66198087e1283c6d","lockfileHash":"af1d67566a9da0e4329b46c14ce8275e","guessedImports":["cheerio","axios"],"guessedImportsHash":"ab28fd43e2fcf9d28132967a3a5ef67b"}}}
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"8d30d8ea2130fe387c7f4afeaa510e2d","lockfileHash":"edca0598dae9b9b9383b1d0c77c95618","guessedImports":["axios","cheerio"],"guessedImportsHash":"0f685e161c456b9499110c6207ea529d"}}}
{
"name": "ctk-anime-scraper",
"version": "2.1.0",
"version": "3.0.0",
"description": "very easy to use package to scrap anime from websites",

@@ -25,4 +25,4 @@ "main": "src/index.js",

"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.5"
"cheerio": "^1.0.0-rc.10"
}
}
# INTRODUCTION
**ctk-anime-scraper** is the advance and better anime scraper in compare to any other scraper that you could ever find, you can get any anime details and it's direct episode link in just few lines of codes.
## 4anime
```js
const AnimeScraper = require("ctk-anime-scraper")
const FourAnime = new AnimeScraper.FourAnime()
/* Search Anime */
FourAnime.search("naruto").then(results => {
/* Get the top result from search and fetch that anime */
FourAnime.fetchAnime(results[0].link).then(anime => {
/* Get the 1st Episode of the anime */
FourAnime.getFromLink(anime.episodes[0].link).then(episode => {
/* Here you have it, Enjoy 😉 */
console.log(episode) // {Object}
})
})
})
```
```js

@@ -25,3 +48,3 @@ const AnimeScraper = require("ctk-anime-scraper")

- 👩‍💻 Developers: CTK WARRIOR#7923
- Supported Websites: [Gogoanime.ai](https://gogoanime.ai/) | [Gogoanime.vc](https://gogoanime.vc/)
- Supported Websites: [Gogoanime.ai](https://gogoanime.ai/) | [Gogoanime.vc](https://gogoanime.vc/) | [4anime.to](https://4anime.to/)

@@ -28,0 +51,0 @@ ## FEATURES

module.exports = {
Gogoanime: require("./Scrapers/gogoanime.js")
}
Gogoanime: require("./Scrapers/gogoanime.js"),
FourAnime: require("./Scrapers/4anime.js")
}

@@ -28,4 +28,4 @@ /**

if (!download) throw new Error("Scraping Error: Unable to scrap the downlaod link");
else download = download.replace("https://streamani.net/", "https://gogo-stream.com/")
htmlContent = await axios({ url: download });
htmlContent = await axios.get(download)
$ = cheerio.load(htmlContent.data);

@@ -89,3 +89,4 @@ const ScrapedAnime = {

if(!episode) throw new Error("Missing Parameters: anime episode number is not provided");
const Episode = await this.getFromLink(`${this.base_url}/${name}-episode-${episode}`).catch(err => {});
const Episode = await this.getFromLink(`${this.base_url}/${name}-episode-${episode}`).catch(err => { });
return Episode ? Episode : {}

@@ -92,0 +93,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc