Scrape-LE

v2.6.0
io.github.nolindnaidoo/scrape-le Checked 2 days ago Published 1 month ago

Analyse 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.

ParameterTypeDescription
content *stringThe contents of the robots.txt file.
path *stringThe path to check, e.g. "/admin". A full URL is accepted and reduced to its path.
agentstringThe crawler to evaluate as, e.g. "Googlebot" or "MyBot/1.0"; matched on its product token, case-insensitively. Omitted, the generic rules answer.
maxResultsintegerCap on returned disallowed paths (default 500). meta.truncated reports whether any were dropped.