Jump to content

Automaticly get the favicon of the website for the ICON to the custom search engine


Recommended Posts

14 hours ago, Babesun said:

Almost every website has a favicon


It's not quite that simple. A favicon is often tiny (max. 48px), as it's meant to be displayed in browser tabs or bookmark lists. Alfred icons are (ideally) 256px.


I agree that it would be pretty cool if Alfred tried to fetch an icon for web searches that don't have one, but if you check the output of RealFaviconGenerator, you'll see that favicons are fairly Serious Business. There's quite a bit of effort involved in extracting the right favicon from an HTML page (assuming an appropriate one is even available).


15 hours ago, Babesun said:

please add "www.baidu.com" to the default web search list


Disagree, tbh. Alfred is fundamentally an English-language tool (its UI is English-only, so Alfred users pretty much need to be comfortable with English). As such, it makes sense to include a bunch of English-language searches, as they're likely to be at least useable for (if not useful to) all users.


If Alfred went down the "Baidu rabbit hole" and included Baidu and Yandex etc., there would be a lot of clutter that is of zero interest to the majority of users.


What I would suggest instead would be a stickied thread in the forum where we can keep a list of the best web searches for different languages. That way, someone could add a whole bunch of searches for the language(s) they're interested in within a couple of minutes.


How does that sound?


Link to comment
Share on other sites

  • 1 year later...

+1 for the favicon.  I create bookmarks and custom web searches all the time, and I'm assuming others do too.  It's time consuming to find an image online and add it as an icon.  It would be very convenient if Alfred automatically grabbed the favicon (when possible) and populated the icon field in the form.  Of course the user could still override it with a custom icon.


I would suggest using a third-party tool like https://favicongrabber.com/service-api-reference and see where it goes from there (higher resolution images could come later).  The http request can be made from the user's local machine, and when it responds an icon can be populated.

Edited by mareoraft
Link to comment
Share on other sites

  • 1 year later...

+1 for the favicon.   Even if the size of the icon is not the same, it is better than nothing,Setting up one by one takes a lot of time, With the icon, it is very obvious, The icons of many websites are the root directory followed by "/favicon.ico"

@mareoraft  Thank you very much for providing this api tool.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...