mlevison Posted September 19, 2018 Share Posted September 19, 2018 So I'm struggling to automate a simple google search and worst thing is googling is almost an exercise in recursion ? I've written alot of blog posts over the years and I frequently want to run a google site search to find specific posts. If I have a search bar the following syntax works: "Site:agilepainrelief.com {query}" In alfred I configure an "open url" object with: https://www.google.com/search?site:agilepainrelief.com {query} I've tried playing with encoding the space or the colon assuming their incorrectly coded. No dice I always end back at https://www.google.com/webhp with no search having been run. Cleary I'm missing something. Any ideas? Mark Link to comment
deanishe Posted September 19, 2018 Share Posted September 19, 2018 Your URL is wrong. It isn’t /search?query it’s /search?q=query Link to comment
vitor Posted September 19, 2018 Share Posted September 19, 2018 1 hour ago, mlevison said: In alfred I configure an "open url" object with: https://www.google.com/search?site:agilepainrelief.com {query} You’re giving site as a special URL parameter and it isn’t — it’s part of the search. What you want is https://www.google.com/search?q=site:agilepainrelief.com+{query}. Link to comment
mlevison Posted September 21, 2018 Author Share Posted September 21, 2018 Thanks that appears to have done it. It was "q=..." part I had wrong. Cheers Mark Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now