npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

novel-cool

v2.0.0

Published

Dependecy-Lowest NovelCool scrapper for nodejs, just using `node-html-parser` for DOM parsing using ES6 for Classes and Modules

Downloads

8

Readme

NovelCool Scrapper 📖

Dependecy-Lowest NovelCool scrapper for nodejs, just using node-html-parser for DOM parsing using ES6 for Classes and Modules

Now in npm 🥳

Install this module with

# npm
npm i novel-cool

#pnpm
pnpm add novel-cool

RoadMap

This is our RoadMap ⏲️

  • [x] Select Languaje
  • [x] Search
  • [x] Get Manga Info
  • [x] Get Episode Images
  • [x] View home page manga (Working in it)

Using

Just import from the module and instance it, then run exec method

Home Page

import {Home} from "novel-cool";
const Books = await Home({lang: "es"})
console.log(Books);
/***
 {
  Title: 'Popular',
  Books: [
    {
      Id: 'Guia-De-La-Reencarnaci-n',
      Name: 'Guia De La Reencarnación',
      Views: 5630,
      Description: 'Información no completada',
      Review: 4.7,
      Image: 'https://img.novelcool.com/logo/202302/8c/Guia_De_La_Reencarnaci_n3429.jpg'
    },
  ]
 }
*/

Manga

There has three methods

import {Manga} from "novel-cool";
// getMangaInfo -> Just Get Manga Metadata
const Manga_info_results = await Manga.getMangaInfo({
  lang: "es",
  id: "Yumemiru-Danshi-Wa-Genjitsushugisha"
})
console.log(Manga_info_results)
/***
 {
    Image: 'https://img.novelcool.com/logo/202104/92/Yumemiru_Danshi_Wa_Genjitsushugisha7510.jpg',
    Type: 'Manga',
    Name: 'Yumemiru Danshi Wa Genjitsushugisha',
    Description: '***',
    Author: '',
    Followers: 643,
    Review: 4.8,
    Reviews: 0,
    OnGoing: true,
    Tags: [...] (string)
  }
**/
// getEpisodes -> Just get episodes from id
const Manga_episode_results = await Manga.getEpisodes({
  lang: "es",
  id: "Yumemiru-Danshi-Wa-Genjitsushugisha"
})

console.log(Manga_episode_results)
/**
 [
    {
      Name: ' Capítulo 27.10Nuevo',
      Id: 'Cap-tulo-27-10/11024482',
      Views: 199,
      Date: 'Jul 10, 2023'
  ]
**/

Manga.getBoth returns the same but in one request

Search

import {Search} from "novel-cool";
const results = await Search({
  lang: "es",
  id: "yumemiru danshi"
});

console.log(results);

/**
[
  {
    Image: 'https://img.novelcool.com/logo/202104/92/Yumemiru_Danshi_Wa_Genjitsushugisha7510.jpg',
    Name: 'Yumemiru Danshi Wa Genjitsushugisha',
    Review: '4.8',
    Date: 'Jul 01, 2023',
    Views: '0',
    Type: 'Manga',
    Tags: [ 'Comedia', 'Drama' ],
    ID: 'Yumemiru-Danshi-Wa-Genjitsushugisha'
  }
]
**/

Episode

Give full episode resources

import {Episode} from "novel-cool"
const results = await Episode({
  lang: "es",
  id: "Cap-tulo-27/11024480"
})

console.log(results) // string[] -> Just a string array 😄

Note ⚠️

For use this module is needed set "type": "module" -> on your package.json Please if you find a issue please 🙏 report it into GitHub CarlosNunezMX/novel-cool

Made with ❤️ from 🇲🇽 by CarlosNunexMX