def snippetWithLink(self, url):
link = self.soup.find("<STR_LIT:a>", attrs={'<STR_LIT>': url})<EOL>if link:<EOL><INDENT>for p in link.parents:<EOL><INDENT>if p.name in ('<STR_LIT:p>', '<STR_LIT>'):<EOL><INDENT>return '<STR_LIT:U+0020>'.join(p.text.split()[<NUM_LIT:0>:<NUM_LIT:30>])<EOL><DEDENT><DEDENT><DEDENT>return None<EOL>
This method will try to return the first
        <p> or <div> that contains an <a> tag linking to
        the given URL.