def get_favicon(self):
kwargs = {'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>', '<STR_LIT:value>': '<STR_LIT>'}<EOL>meta = self.parser.getElementsByTag(self.article.doc, **kwargs)<EOL>if meta:<EOL><INDENT>favicon = self.parser.getAttribute(meta[<NUM_LIT:0>], '<STR_LIT>')<EOL>return favicon<EOL><DEDENT>return '<STR_LIT>'<EOL>
Extract the favicon from a website
http://en.wikipedia.org/wiki/Favicon
<link rel="shortcut icon" type="image/png" href="favicon.png" />
<link rel="icon" type="image/png" href="favicon.png" />