MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / crawl

Method crawl

packages/llm/src/langchain.ts:169–182  ·  view source on GitHub ↗
(url: string, options: CrawlOptions)

Source from the content-addressed store, hash-verified

167
168 @measure
169 private static async crawl(url: string, options: CrawlOptions) {
170 const { output, selectors } = options;
171 const exists = await FileStore.has({ dir: output });
172 if (exists) {
173 return;
174 }
175
176 const { documents } = await WebCrawler.crawl({
177 url,
178 selectors,
179 });
180
181 await FileStore.write({ dir: output, files: documents });
182 }
183
184 @measure
185 private static async storeFunction({

Callers 1

crawlToStoreMethod · 0.95

Calls 2

hasMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected