def explicit_rel_links(self, rels=('<STR_LIT>', '<STR_LIT>')):
rels = set(rels)<EOL>for anchor in self.parsed.findall("<STR_LIT>"):<EOL><INDENT>if anchor.get("<STR_LIT>") and anchor.get("<STR_LIT>"):<EOL><INDENT>found_rels = set(anchor.get("<STR_LIT>").split())<EOL>if found_rels & rels:<EOL><INDENT>href = anchor.get("<STR_LIT>")<EOL>url = self.clean_link(<EOL>urllib_parse.urljoin(self.base_url, href)<EOL>)<EOL>yield Link(url, self, trusted=False)<EOL><DEDENT><DEDENT><DEDENT>
Yields all links with the given relations