From 178440a39ab73e0238deed32df9a20e615dfa509 Mon Sep 17 00:00:00 2001 From: Vicente Jimenez Aguilar Date: Tue, 5 May 2015 10:36:02 +0200 Subject: [PATCH] Correct login request example In the example log is not imported and not found in the global name space --- docs/topics/request-response.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index 69e4b738b..62be0b29b 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -367,7 +367,7 @@ method for this job. Here's an example spider which uses it:: def after_login(self, response): # check login succeed before going on if "authentication failed" in response.body: - self.log("Login failed", level=log.ERROR) + self.log("Login failed", level=scrapy.log.ERROR) return # continue scraping with authenticated session...