Scrape-LE
v2.6.0Analyse robots.txt content and report whether a path may be crawled.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_robots_txt
Given the contents of a robots.txt file and a path, report whether the rules permit crawling it — the group naming `agent` when one does, otherwise the generic (User-agent: *) rules, and `agent` in the answer says which — along with the crawl delay, the disallowed patterns and any sitemaps. Takes the file contents directly and makes no network request of its own — fetch robots.txt with your own HTTP tool and pass what it returned.
| Parameter | Type | Description |
|---|---|---|
content * | string | The contents of the robots.txt file. |
path * | string | The path to check, e.g. "/admin". A full URL is accepted and reduced to its path. |
agent | string | The crawler to evaluate as, e.g. "Googlebot" or "MyBot/1.0"; matched on its product token, case-insensitively. Omitted, the generic rules answer. |
maxResults | integer | Cap on returned disallowed paths (default 500). meta.truncated reports whether any were dropped. |