Jump to content
llityslife

Automatic suggestion of search engine in web search

Recommended Posts

when we search for some key words, there are multi-custom web search. If we can set custom keywords for query, when we type a sentence will match the keywords of the query for the quick search.

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/13/2020 at 3:29 AM, vitor said:

I don’t understand your second sentence. Can you rephrase what you’re asking for?

For example, I set keywords image, dog for google search, set bag, apple.. for Bing search, then when I input big apple, the Bing will be the first suggestion search service, but input Landscape image, the google search will head for the first one.

Edited by llityslife

Share this post


Link to post
Share on other sites
11 hours ago, llityslife said:

For example, I set keywords image, dog for google search, set bag, apple.. for Bing search, then when I input big apple, the Bing will be the first suggestion search service, but input Landscape image, the google search will head for the first one.

 

Are you using automatic translation software?

Share this post


Link to post
Share on other sites
16 hours ago, vitor said:

 

Are you using automatic translation software?

😀Maybe I need explain it more detail. The keywords for each web search, when I type a sentence "where can I buy a big", and I set a keyword "big" in amazon search, which will at the first position of the search bar.

Share this post


Link to post
Share on other sites
54 minutes ago, deanishe said:

So you mean "keywords" in the metadata sense, not in the regular Alfred sense:

 

alfred-keyword.png.7da3c5bdd970d827b8c313c52b6a0cb3.png

 

 

That's right! It needs Alfred auto match the metadata with the datasets, when we are typing a sentence in the search bar, it will match the appropriate search engine. Or there are AI learn engine, it can learn what we want, for example, when I input "Titanic", Alfred will suggest use IMDB and YouTube.

Share this post


Link to post
Share on other sites

That would need to be a very sophisticated feature to work well. It'd need a large amount of domain knowledge, and how would you train it to recognise your custom web searches?

 

I don't think that's at all feasible for Alfred. Web search is just one small feature. The Alfred team can't invest an entire application's worth of effort into it.

 

If you don't like having to specify the search engine before the query, you can try my Suffix Web Search workflow.

Share this post


Link to post
Share on other sites
2 hours ago, deanishe said:

That would need to be a very sophisticated feature to work well. It'd need a large amount of domain knowledge, and how would you train it to recognise your custom web searches?

 

I don't think that's at all feasible for Alfred. Web search is just one small feature. The Alfred team can't invest an entire application's worth of effort into it.

 

If you don't like having to specify the search engine before the query, you can try my Suffix Web Search workflow.

I agree with you. I test Suffix Web Search workflow, it only can be used with one word. 

Thanks for your help.

Share this post


Link to post
Share on other sites
30 minutes ago, llityslife said:

it only can be used with one word. 

 

What do you mean? Your query can be as many words as you like. The keywords are read from Alfred's web search configuration, so if you want multiple possible keywords, you need to make a copy of the web search for each keyword.

Share this post


Link to post
Share on other sites
2 hours ago, deanishe said:

 

What do you mean? Your query can be as many words as you like. The keywords are read from Alfred's web search configuration, so if you want multiple possible keywords, you need to make a copy of the web search for each keyword.

This is work.

image.png.4f231fc572fd3fabeed5ea10d19fd457.png

Is it possible support Chinese. Thanks!

image.png.497619ba02b2f5ace505f35f4666967b.png

Share this post


Link to post
Share on other sites
Posted (edited)
41 minutes ago, deanishe said:

 

Should be fixed now. Download the workflow again.

v0.3 still not work well for Chinese. I test this phrase: 你好

Edited by llityslife

Share this post


Link to post
Share on other sites
8 hours ago, deanishe said:

It works.

suffix-search.png.e108c09209224962e3bd7dcafe14f9c2.png

If you're having a problem, you need to provide a better description of your issue for me to work with.

I edit the .py source file, and add

reload(sys)
sys.setdefaultencoding('utf-8')

It is work fine!

Share this post


Link to post
Share on other sites
28 minutes ago, llityslife said:

It is work fine!


Can you please post the error you’re getting so I can make sure it’s fixed for everyone, not just you?

Share this post


Link to post
Share on other sites
10 minutes ago, deanishe said:


Can you please post the error you’re getting so I can make sure it’s fixed for everyone, not just you?

It is work now, add 

reload(sys)
sys.setdefaultencoding('utf-8')

into the py file.

Share this post


Link to post
Share on other sites

 I understood what you said. reload(sys) is a hack, and I would like a more correct solution. So I would appreciate it if you would post the error you were getting. That way I can fix it for everyone without hacks.

Share this post


Link to post
Share on other sites
Posted (edited)
19 minutes ago, deanishe said:

 I understood what you said. reload(sys) is a hack, and I would like a more correct solution. So I would appreciate it if you would post the error you were getting. That way I can fix it for everyone without hacks.

It's an encode  error. So I need to set the websearch.py file character as utf-8.

image.png.404e6c72e827d2c7f632b31a7d45d6dd.png

image.png.1860c6e0f0b22a58a1bfcf85516b1ad1.png

Edited by llityslife

Share this post


Link to post
Share on other sites
Just now, llityslife said:

It's an encode  error. So I need specifies the websearch.py file character set as utf-8.

 

I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring.

Share this post


Link to post
Share on other sites
5 minutes ago, deanishe said:

 

I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring.

Here it is log.txt

Share this post


Link to post
Share on other sites
Posted (edited)
22 minutes ago, deanishe said:

 

I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring.

I found that you build Icon Generator project, if it could be a workflow, it can work with folderify.

image.png.05c7f1b37849544bfa9a8b9e0bf2d433.png

Edited by llityslife

Share this post


Link to post
Share on other sites
2 hours ago, llityslife said:

it can work with folderify.

 

That's an interesting tool. Thanks for the pointing it out.

 

I have no plans to turn the Icon Generator into a workflow, though. It doesn't have an API, and all the previews are currently generated from webfonts, which wouldn't work in Alfred. Changing it to provide PNG previews would massively increase the load on the (very small) server.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...