Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 13, 2023
1 parent 5f9f963 commit b0185f9
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ const loader = new CheerioWebBaseLoader(

const docs = await loader.load();
```

## Usage, with a custom selector

```typescript
import { CheerioWebBaseLoader } from "langchain/document_loaders/web/cheerio";

const loader = new CheerioWebBaseLoader(
"https://news.ycombinator.com/item?id=34817881",
{
selector: "p.athing",
}
);

const docs = await loader.load();
```

0 comments on commit b0185f9

Please sign in to comment.