* 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)
| 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, |
no outgoing calls