def after_initial_login(self, response):
if LOGIN_FAILURE_MSG in response.text:<EOL><INDENT>self.logger.error(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL>return<EOL><DEDENT>self.logger.info("<STR_LIT>")<EOL>if self.single_url:<EOL><INDENT>yield scrapy.Request(<EOL>self.single_url,<EOL>callback=self.parse_item,<EOL>errback=self.handle_error<EOL>)<EOL><DEDENT>else:<EOL><INDENT>for url in self.start_urls:<EOL><INDENT>yield scrapy.Request(<EOL>url,<EOL>callback=self.analyze_url_list,<EOL>errback=self.handle_error<EOL>)<EOL><DEDENT><DEDENT>
This method is called *only* if the crawler is started with an
email and password combination.
It verifies that the login request was successful,
and then generates requests from `self.start_urls`.