def parse_item(self, response):
<EOL>if URLObject(response.url).path == LOGIN_HTML_PATH:<EOL><INDENT>reqs = self.handle_unexpected_redirect_to_login_page(response)<EOL>for req in reqs:<EOL><INDENT>yield req<EOL><DEDENT><DEDENT>title = response.xpath("<STR_LIT>").extract_first()<EOL>if title:<EOL><INDENT>title = title.strip()<EOL><DEDENT>request_headers = {key.decode('<STR_LIT:ascii>'): value[<NUM_LIT:0>].decode('<STR_LIT:ascii>')<EOL>for key, value<EOL>in response.request.headers.items()}<EOL>item = A11yItem(<EOL>url=response.url,<EOL>request_headers=request_headers,<EOL>accessed_at=datetime.utcnow(),<EOL>page_title=title,<EOL>)<EOL>yield item<EOL>
Get basic information about a page, so that it can be passed to the
`pa11y` tool for further testing.

@url https://www.google.com/
@returns items 1 1
@returns requests 0 0
@scrapes url request_headers accessed_at page_title