UNPKG

manga-crawl-lib

Version:

A library for scraping manga from various websites.

21 lines (20 loc) 610 B
import { CheerioAPI } from 'cheerio'; import { Page } from 'puppeteer'; import { responseChapter } from '../types/type'; interface paramsSelector { puppeteer?: Page; cheerioApi?: CheerioAPI; mainContentSelector: string; baseUrl: string; url: string; prev_chapter?: string; next_chapter?: string; titleSelector: string; imageSelectorAll: string; originImageAttr: string; cdnImageAttr?: string; prevChapterSelector: string; nextChapterSelector: string; } export declare const useGetDataChapter: (params: paramsSelector) => Promise<responseChapter>; export {};