Skip to main content
This example goes over how to load data from any GitBook, using Cheerio. One document will be created for each page.

Setup

npm

Load from single GitBook page

Load from all paths in a given GitBook

For this to work, the GitbookLoader needs to be initialized with the root path (https://docs.gitbook.com in this example) and have shouldLoadAllPaths set to true.