good job chcuklenuts
This commit is contained in:
parent
9d0ad93176
commit
4e76fa1f8b
1 changed files with 1 additions and 2 deletions
|
@ -150,11 +150,10 @@ async function siteCrawler(hostname) {
|
|||
const crawled = generateSearchTerm(hostname);
|
||||
|
||||
const loader = new RecursiveUrlLoader(crawled, {
|
||||
extractor: new Readability(craweled).parse(),
|
||||
maxDepth: maxDepthCount,
|
||||
excludeDirs: ["https://doubleclick.net", "https://paypal.com", "https://archive.org", "*.css"],
|
||||
});
|
||||
const webContents = await loader.load();
|
||||
const webContents = await Readability(loader.load()).parse();
|
||||
webContents.forEach(content => contexts.push(content));
|
||||
return webContents;
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue