will-lumley / FaviconFinder

A small swift library for iOS & macOS to detect favicons used by a website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An easy way to get favicon

fhefh2015 opened this issue · comments

https://gist.github.com/matt-daniel-brown/b09b35c1e97b3068a773cd2df35f8f1c

<!-- Google API -->
<div class="icons">
  <span>Google API</span>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=twitter.com&sz=32" alt="Twitter Icon"/>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=google.com&sz=32" alt="Goolgle Icon"/>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=facebook.com&sz=32" alt="Facebook Icon"/>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=mailbrew.com&sz=32" alt="Mailbrew Icon"/>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=getmakerlog.com&sz=32" alt="Makerlog Icon"/>
<img src="https://s2.googleusercontent.com/s2/favicons?domain=leavemealone.app&sz=32" alt="Leave Me Alone Icon"/>
</div>
<br />

<!-- DDG API -->
<div class="icons">
  <span>DDG API</span>
<img src="https://icons.duckduckgo.com/ip3/twitter.com.ico" alt="Twitter Icon"/>
<img src="https://icons.duckduckgo.com/ip3/google.com.ico" alt="Goolgle Icon"/>
<img src="https://icons.duckduckgo.com/ip3/facebook.com.ico" alt="Facebook Icon"/>
<img src="https://icons.duckduckgo.com/ip3/mailbrew.com.ico" alt="Mailbrew Icon"/>
<img src="https://icons.duckduckgo.com/ip3/getmakerlog.com.ico" alt="Makerlog Icon"/>
<img src="https://icons.duckduckgo.com/ip3/leavemealone.app.ico" alt="Leave Me Alone Icon"/>
</div>
<br />

<!-- unavatar API -->

<div class="icons">
  <span>Unavatar API</span>
<img src="https://unavatar.now.sh/twitter.com" alt="Twitter Icon"/>
<img src="https://unavatar.now.sh/google.com" alt="Goolgle Icon"/>
<img src="https://unavatar.now.sh/facebook.com" alt="Facebook Icon"/>
<img src="https://unavatar.now.sh/mailbrew.com" alt="Mailbrew Icon"/>
<img src="https://unavatar.now.sh/getmakerlog.com" alt="Makerlog Icon"/>
<img src="https://unavatar.now.sh/leavemealone.app" alt="Leave Me Alone Icon"/>
</div>

Hi there @fhefh2015! Thanks for raising an issue.
However I'm unable to determine what the issue you're raising is. Could you please provide a bit more detail?

@will-lumley
You can use the API to get the website icon.

# i.e. Get Twitter.com website icon
https://s2.googleusercontent.com/s2/favicons?domain=twitter.com&sz=32
https://unavatar.now.sh/twitter.com
https://icons.duckduckgo.com/ip3/twitter.com.ico

@fhefh2015 Thanks for the heads up! Currently I want to keep as much of the logic in-repo as possible. I'd rather not have the framework be dependent on another bit of software to function.