Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/components/nodes/documentloaders/Cheerio/Cheerio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { parse } from 'css-what'
import { SelectorType } from 'cheerio'
import { ICommonObject, INodeOutputsValue, IDocument, INode, INodeData, INodeParams } from '../../../src/Interface'
import { handleEscapeCharacters, webCrawl, xmlScrape } from '../../../src/utils'
import { checkDenyList } from '../../../src/httpSecurity'
Comment thread
0xi4o marked this conversation as resolved.
Outdated

class Cheerio_DocumentLoaders implements INode {
label: string
Expand Down Expand Up @@ -148,6 +149,7 @@ class Cheerio_DocumentLoaders implements INode {

async function cheerioLoader(url: string): Promise<any> {
try {
await checkDenyList(url)
let docs: IDocument[] = []
if (url.endsWith('.pdf')) {
if (process.env.DEBUG === 'true')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { test } from 'linkifyjs'
import { omit } from 'lodash'
import { handleEscapeCharacters, INodeOutputsValue, webCrawl, xmlScrape } from '../../../src'
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
import { checkDenyList } from '../../../src/httpSecurity'

class Playwright_DocumentLoaders implements INode {
label: string
Expand Down Expand Up @@ -189,6 +190,7 @@ class Playwright_DocumentLoaders implements INode {

async function playwrightLoader(url: string): Promise<Document[] | undefined> {
try {
await checkDenyList(url)
Comment thread
0xi4o marked this conversation as resolved.
let docs = []

const executablePath = process.env.PLAYWRIGHT_EXECUTABLE_PATH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { omit } from 'lodash'
import { PuppeteerLifeCycleEvent } from 'puppeteer'
import { handleEscapeCharacters, INodeOutputsValue, webCrawl, xmlScrape } from '../../../src'
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
import { checkDenyList } from '../../../src/httpSecurity'

class Puppeteer_DocumentLoaders implements INode {
label: string
Expand Down Expand Up @@ -180,6 +181,7 @@ class Puppeteer_DocumentLoaders implements INode {

async function puppeteerLoader(url: string): Promise<Document[] | undefined> {
try {
await checkDenyList(url)
Comment thread
0xi4o marked this conversation as resolved.
let docs: Document[] = []

const executablePath = process.env.PUPPETEER_EXECUTABLE_PATH
Expand Down
Loading