codelucas / newspaper

newspaper3k is a news, full-text, and article metadata extraction in Python 3. Advanced docs:
https://goo.gl/VX41yK
MIT License
14.15k stars 2.12k forks source link

Is it possible to get favicon? #472

Open vitaly-zdanevich opened 6 years ago

vitaly-zdanevich commented 6 years ago

I tried article.extractor.get_favicon(article.html) but returned

AttributeError: 'str' object has no attribute 'xpath'

And article.meta_favicon that return ''

awiebe commented 6 years ago

Which is true, html i a string, but the extractor clearly expects a different object, possibly the article object.