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 🙏

© 2026 – Pkg Stats / Ryan Hefner

novel-scraper

v9.0.0

Published

Made to scraping novels with Puppeter

Downloads

21

Readme

Novel Scraper

A simple Node.js module for scraping novels from Webnovel.com, Fanmtl.com and more

Installation

npm install novel-scraper

Basic Documentation

Each function requires at least two parameters:

  1. A link to chapter 1 of the novel.
  2. The path where the novel will be saved locally.
  3. "Optional" If you want to split the content into several txt files, the number is passed in KB.
  4. The path to the Ublock folder, which is needed for bypassing site restrictions.
  • fanmtl(), firenovel(), wtrlab() functions requires a third parameter: You can download the Ublock folder from this link: https://drive.google.com/drive/folders/1_bQ0g131S9xgkAfMhTJqjV1j-WAtWUw2?usp=drive_link

Example

import { webnovel, fanmtl, fanfiction, firenovel, wtrlab } from "novel-scraper";

// We define variables as parameters for functions.
const link = "httos://example/Chapter-1.com";   // Link to the first chapter of the novel to scrape
const path = "C:/Users/folder to save novel";   // Path to the folder where the novel will be saved, "/" is used by default
const Ublock = "C:/Users/folder of Ublock";     // Path to the folder where Ublock was downloaded ("It is downloaded from the Google Drive provided above")
const divide = 100;                             // If you want to split the result into multiple txt files, this sets a KB limit to split into several txts

// In all functions, the last parameter is optional, "divide". If you want the entire text in a single txt, do not include it.
await webnovel(link, path, divide) // Last parameter divide to split the content by size in KB


// Webnovel function
await webnovel(link, path)

// Fanfiction function
await fanfiction(link, path)

// Fanmtl function, this function *requires* Ublock to avoid errors
await fanmtl(link, path, Ublock)

// Firenovel function, this function *requires* Ublock to avoid errors
await firenovel(link, path, Ublock)

// Wtr-lab function, this function *requires* Ublock to avoid errors
await wtrlab(link, path, Ublock)

Requirements

  • Node.js
  • Ublock folder required only for Fanmtl, Firenove, and Wtr-lab scraping