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

scrap-gitbook

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrap-gitbook

A scraper designed to extract and convert content from GitBook pages into Markdown format.

latest
npmnpm
Version
1.0.8
Version published
Maintainers
0
Created
Source

GitBook Scraper

A scraper designed to extract and convert content from GitBook pages into Markdown format.

The project uses axios for making HTTP requests, cheerio for parsing and extracting HTML elements, and Turndown for converting HTML to Markdown.

Usage with npm module

1. Install Dependencies

Ensure that you have Node.js installed. Then, install the project dependencies:


npm install scrap-gitbook

2. Import function

Create a file js or typescript and add this:

import scrapGitBook from "scrap-gitbook/src/scrapGitBook";

3. Call function


const gitbookUrl = "https://docs.dodoex.io/en/home/what-is-dodo";
const outputFile = "result.md";

scrapGitBook(gitbookUrl, outputFile);

Usage with github

1. Install Dependencies

Ensure that you have Node.js installed. Then, install the project dependencies:

git clone https://github.com/jecombe/scrap-gitbook.git

cd scrap-gitbook.git/

npm i

2. Add a gitbook

Open file index.ts and change const gitbookUrl with a GitBook link, and run:

npm run build-run

FAQs

Package last updated on 31 Jan 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