How to get high resolution website logo (favicon) for a given URL

前端 未结 5 1146
情深已故
情深已故 2020-12-13 14:29

I\'m developing a web browser on Android and want to show the URL logo for the most visited sites like in Chrome (4 X 2). But the problem is that most favicons (eg: http://w

5条回答
  •  盖世英雄少女心
    2020-12-13 14:39

    The Go code at https://github.com/mat/besticon tries to solve this problem.

    For example

    $ besticon http://github.com 
    http://github.com:  https://github.com/apple-touch-icon-144.png
    

    There is also an accompanying hosted version of the code, see for example http://icons.better-idea.org/icons?url=github.com.

    (Disclaimer: I wrote it because I needed to solve the same problem a while ago.)

提交回复
热议问题