根据url 获取其icon,收集了一下几种方案,需要的可以逐个测试下
https://www.ahaoyw.com/article/687.html
https://github.com/sy-records/GetFavicon
https://www.doubi.ren/257.html
https://favicon.yandex.net/favicon/https://m.qidian.com
https://api.xinac.net/icon/?url=
https://favicon.yandex.net/favicon/https://m.qidian.com
http://www.google.com/s2/favicons?domain=
直接下载ico http://www.getfavicon.org/?url=https://m.qidian.com
具体代码实现可以参考一下:
https://github.com/sy-records/GetFavicon/blob/master/get.php