How can I get a web site's favicon?

前端 未结 14 2086
旧巷少年郎
旧巷少年郎 2020-12-22 15:28

Simple enough question: I\'ve created a small app that is basically just a favourites that sits in my system tray so that I can open often-used sites/folders/files from the

14条回答
  •  礼貌的吻别
    2020-12-22 16:01

    In 2020, using duckduckgo.com's service from the CLI

    curl -v https://icons.duckduckgo.com/ip2/.ico > favicon.ico
    

    Example

    curl -v https://icons.duckduckgo.com/ip2/www.cdc.gov.ico > favicon.ico
    

提交回复
热议问题