New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

plugin-books-pro

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-books-pro

[![npm version](https://badge.fury.io/js/plugin-books-pro.svg)](https://badge.fury.io/js/plugin-books-pro)

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

Plugin Books Pro

npm version

A powerful library for crawling manga and novel content from various sources.

Mode Develop

yarn dev:[supplier-name]

Build

yarn build

Installation

yarn add plugin-books-pro

Usage

import { Books, Suppliers } from "plugin-books-pro"
import { BrowserWorker } from "t2-browser-worker"

const worker = new BrowserWorker()
const books = new Books()

const crawler = books.build(Suppliers.TruyenQQ)

// Start crawling
const result = await worker.runTask(async page => {
    return await crawler.crawl(page)
})

Crawl Response Data

Example response:

{
    top: {
        dataType: "Top",
        status: "SUCCESS",
        data: [
            {
                identifier: "ONE PIECE",
                name: "One Piece",
                rank: 1,
                view: 1500000,
                like: 50000,
                follow: 100000,
                tags: "Action,Adventure,Comedy,Fantasy,Shounen",
                lastChapter: 1108,
                author: "Oda Eiichiro",
                comment: 3000,
                imageUrlThumbnail: "https://example.com/one-piece.jpg",
                imagePathThumbnail: "/images/manga/one-piece.jpg",
                description: "Gol D. Roger was known as the Pirate King...",
                link: "https://mangadex.org/title/a1c7c817-4e59-43b7-9365-09675a149a6f"
            },
            // ... more items
        ]
    },
    bookNew: {
        dataType: "New",
        status: "SUCCESS",
        data: [
            {
                identifier: "JUJUTSU KAISEN",
                name: "Jujutsu Kaisen",
                rank: 1,
                view: 500000,
                like: 20000,
                follow: 50000,
                tags: "Action,Supernatural,School Life,Shounen",
                lastChapter: 253,
                author: "Gege Akutami",
                comment: 1500,
                imageUrlThumbnail: "https://example.com/jjk.jpg",
                imagePathThumbnail: "/images/manga/jujutsu-kaisen.jpg",
                description: "A boy fights... to help people...",
                link: "https://mangadex.org/title/c52b2ce3-7f95-469c-96b0-479524fb7a1a"
            }
        },
}

Book Fields

FieldTypeRequiredDescription
ranknumberPosition in the list
identifierstringUnique identifier (normalized name)
namestringBook title
linkstringURL to book page
imageUrlThumbnailstringCover image URL
viewnumberView count
likenumberLike count
follownumberFollow/bookmark count
tagsstringCategories/genres (comma-separated)
lastChapternumberLatest chapter number
authorstringAuthor name
commentnumberComment count
imagePathThumbnailstringLocal path to cover image
descriptionstringBook synopsis
ratingnumberRating score (0-5)

Manga Sources

StatusIconKeyURL
TruyenQQhttps://truyenqqto.com
Manhuavnhttps://manhuavn.top
ManhuaRockhttps://manhuarock2.site
MangaToonhttps://mangatooncom.vn
Mangadexhttps://mangadex.org
NaverComichttps://comic.naver.com

Novel Sources

StatusIconKeyURL
Metruyencvhttps://metruyencv.com
TruyenFullhttps://truyenfull.vision
XaloSachhttps://xalosach.com
SSTruyenhttps://sstruyen.vn
TruyenYYhttps://truyenyy.xyz

Dependencies

Keywords

nettruyen

FAQs

Package last updated on 18 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts