zqzten / alfred-web-search-suggest Goto Github PK
View Code? Open in Web Editor NEWAlfred search suggest workflow for various popular websites.
License: MIT License
Alfred search suggest workflow for various popular websites.
License: MIT License
Would be a lot better. Like it is done here.
输入字符串,没有b站和微博
wiki
no longer works. Perhaps since the redesign? Debug log of running wiki last week tonight
:
[19:22:24.271] Web Search Suggest[Script Filter] Queuing argument 'last week tonight'
[19:22:24.424] Web Search Suggest[Script Filter] Script with argv '(null)' finished
[19:22:24.430] ERROR: Web Search Suggest[Script Filter] Code 255: PHP Warning: Trying to access array offset on value of type null in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php:20
Stack trace:
#0 Command line code(4): require_once()
#1 {main}
thrown in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
[19:22:24.432] Web Search Suggest[Script Filter] Warning: Trying to access array offset on value of type null in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php:20
Stack trace:
#0 Command line code(4): require_once()
#1 {main}
thrown in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
[19:22:24.433] ERROR: Web Search Suggest[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Warning: Trying to access array offset on value of type null in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php:20
Stack trace:
#0 Command line code(4): require_once()
#1 {main}
thrown in /Users/vm/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/WebSearchSuggest.com.akikoz.alfred.websearchsuggest/wikipedia.php on line 20
All other searches work.
[18:21:58.355] Logging Started...
[18:22:01.380] Web Search Suggest[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072%3EAE15F1F6-37B0-4A47-BEE1-975354A81227)] Queuing argument 'd'
[18:22:01.922] Web Search Suggest[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072%3EAE15F1F6-37B0-4A47-BEE1-975354A81227)] Script with argv '(null)' finished
[18:22:01.928] ERROR: Web Search Suggest[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072%3EAE15F1F6-37B0-4A47-BEE1-975354A81227)] Code 255: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php:16
Stack trace:
#0 Command line code(3): require_once()
#1 {main}
thrown in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php on line 16
[18:22:01.932] Web Search Suggest[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072%3EAE15F1F6-37B0-4A47-BEE1-975354A81227)] Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php:16
Stack trace:
#0 Command line code(3): require_once()
#1 {main}
thrown in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php on line 16
[18:22:01.934] ERROR: Web Search Suggest[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072%3EAE15F1F6-37B0-4A47-BEE1-975354A81227)] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php:16
Stack trace:
#0 Command line code(3): require_once()
#1 {main}
thrown in /Users/zhuangzhu/Nutstore Files/Alfred/Alfred.alfredpreferences/workflows/user.workflow.FAC11FB7-16FF-47AE-8AF9-575CFBEF3072/bilibili.php on line 16
Other can work
macOS: 14.1
Alfred: 5.1.4
workflow versions: 1.20
Hi Zach, the alfred search workflow doesn't work anymore with the macos Monterey upgrade.
Would be wonderful to have an update ❤️ Thanks in advance
[01:44:25.089] ERROR: Web Search Suggest[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /Users/junhong/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2CED1F28-CD36-4840-BD15-8700883DCB04/google.php on line 13
知乎出来的结果是乱码
tmdb search workflow
add plz!!
请问一下 如何搜索amazon呢?
找到了 amazon url 但是不知道如何设置.
http://completion.amazon.com/search/complete?search-alias=aps&client=amazon-search-ui&mkt=1&q=canon
截至今天(2021年 2月24日)我测试的时候发现维基百科、微博和Bangumi的搜索建议无法显示出来。其他的是正常的。
按照要求配置了对于的proxy, 我使用的事clashx, 配的地址的 http://127.0.0.1:7890 , 这个地址我的iterm2是可以正常工作的, 有没有什么办法?
同问,并且wiki在我这也无法正常使用
debug显示获取结果数量的count变量为null,不太懂php,也没去调试
Originally posted by @KanswerG in #33 (comment)
您好,非常感谢您免费提供了这款workflow,但是我看文档看不明白这个插件如何设置proxy从而可以使用google,请问能不能指点一二,非常感谢
When I test it,I found the zhihu-search-suggest get a problem.
The Alfred debug log is:
[2018-06-11 14:30:48][input.scriptfilter] Queuing argument '栋' [2018-06-11 14:30:49][input.scriptfilter] Script with argument '(null)' finished [2018-06-11 14:30:49][input.scriptfilter] Warning: Invalid argument supplied for foreach() in /Users/sunli/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0328F3B6-3FDF-4661-9B58-A3C1E4ED1153/zhihu.php on line 20 {"items":[]} [2018-06-11 14:30:49][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: Warning: Invalid argument supplied for foreach() in /Users/sunli/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0328F3B6-3FDF-4661-9B58-A3C1E4ED1153/zhihu.php on line 20 {"items":[]}
I try to modify the code in "zhihu.php" line 17 to "$json = json_decode($response)[0];"
And the problem seem to be solved.
But I'm not a browser side engineer,so I can't confirm does it really work, pls check it.
Reason: launch path not accessible
/usr/bin/php
Check that the selected language exists on your system.
If you're syncing Alfred's preferences, also check that all related workflow files exist locally.
where should I set the proxy? it seems like I can’t make it working like the screenshots.
could you pleas be more specific about setting it up?
thank you!
I'm getting the following error when attempting to run. Any idea on how to fix?
Unable to run task!
Reason: launch path not accessible
It's likely that the folder required to run this task has somehow been deleted, perhaps syncing?
This error isn't that serious, just try again :)
Related Workflow Info...
Name: 'Web Search Suggest'
Folder:/Users/nick/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.935962E0-1F83-4535-A2FD-76DF6D177502
For all searches, text beyond a certain length is invalidated
could you rewrite the jd.php?plz
另外提一个小建议,就是使用suggest的时候有时候没有合适的suggest结果或者就是想搜输入的词,这时候就比较苦恼。建议可以在所有suggest中把默认的词始终放在第一位。
Like the picture shows above, it seems that the search result went wrong functionally when there is no searching candidate (maybe a null list returned, sorry I'm not familiar with PHP and I haven't read your code yet).
Is there a way to keep the functionality? such as Still search Bilibili for {query}...
, or the way shown below
chrome和safari都可以访问google,但是alfred gg还是不行(百度正常),可以协助测试 qq:80101277
谢谢
目前,在没有搜索建议时,会退回到 Alfred 的默认搜索。
这种情况下,希望能够回车搜索输入的词语。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.