Scrapy · Option
ROBOTSTXT_OBEY
RobotsTxtMiddleware checks Scrapy requests against a site's robots.txt rules. Enable the middleware and ROBOTSTXT_OBEY to block requests that the site forbids.
Last updated
Syntax
async process_request(request: Request, spider: Spider | None = None) -> NoneIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ROBOTSTXT_OBEYROBOTSTXT_PARSERROBOTSTXT_USER_AGENTDOWNLOADER_MIDDLEWARESscrapy.robotstxt.ProtegoRobotParserscrapy.robotstxt.PythonRobotParser