Merge pull request #1208 from vice/patch-1

Correct login request example
This commit is contained in:
Mikhail Korobov 2015-05-05 16:46:19 +05:00
commit 7864742374
1 changed files with 1 additions and 1 deletions

View File

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