MCPcopy
hub / github.com/apify/crawlee / from

Method from

packages/utils/src/internals/robots.ts:61–63  ·  view source on GitHub ↗

* Allows providing the URL and robots.txt content explicitly instead of loading it from the target site. * @param url the URL for robots.txt file * @param content contents of robots.txt * @param [proxyUrl] a proxy to be used for fetching the robots.txt file

(url: string, content: string, proxyUrl?: string)

Source from the content-addressed store, hash-verified

59 * @param [proxyUrl] a proxy to be used for fetching the robots.txt file
60 */
61 static from(url: string, content: string, proxyUrl?: string): RobotsTxtFile {
62 return new RobotsTxtFile(robotsParser(url, content), proxyUrl);
63 }
64
65 protected static async load(
66 url: string,

Callers 15

robots.test.tsFile · 0.80
sitemap.test.tsFile · 0.80
parseSitemapFunction · 0.80
stream.test.tsFile · 0.80
getRecordMethod · 0.80
intoImpitBodyMethod · 0.80
sendFunction · 0.80

Calls

no outgoing calls

Tested by 5

makeQueueFunction · 0.64
createFakeLoadSignalFunction · 0.64
getBufferMethod · 0.64
requestHandlerFunction · 0.64