def iter_links(self):<EOL>
document = html5lib.parse(<EOL>self.content,<EOL>transport_encoding=_get_encoding_from_headers(self.headers),<EOL>namespaceHTMLElements=False,<EOL>)<EOL>base_url = _determine_base_url(document, self.url)<EOL>for anchor in document.findall("<STR_LIT>"):<EOL><INDENT>if anchor.get("<STR_LIT>"):<EOL><INDENT>href = anchor.get("<STR_LIT>")<EOL>url = _clean_link(urllib_parse.urljoin(base_url, href))<EOL>pyrequire = anchor.get('<STR_LIT>')<EOL>pyrequire = unescape(pyrequire) if pyrequire else None<EOL>yield Link(url, self.url, requires_python=pyrequire)<EOL><DEDENT><DEDENT>
Yields all links in the page