Tonycr46 Posted August 4, 2017 Share Posted August 4, 2017 I'm surprised I don't see this addressed in the workflow forums or other repositories, but no luck on searches. I'm trying to set up a workflow for a Google search restricted to the past year. I know there is a URL that brings up a search bar with the past year option, but I'd like to get Alfred to do it with the search topic. I'm trying to set up a workflow for a Google search restricted to the past year only. I know there is a URL that brings up a search bar with the past year option, but I'd like to get Alfred to do it with the search topic . FYI, the URL is https://www.google.com/webhp?tbs=qdr:y&gws_rd=cr&ei=7t_RWKWGFcOw0gSlsrmwDg Thanks for the help. Tony Link to comment
nikivi Posted August 4, 2017 Share Posted August 4, 2017 (edited) I kind of wanted to do the same actually. There is this awesome workflow to search websites with autosuggestions, Google included. I use it daily and love and had the same issue with you. One way you can do it, is to catch the output of one the script filters from Google script filter and then modify the URL with regex to scope the search to past year/most recent. Just at the time I tried it, I found it a bit confusing to work with the code there due to my inexperience. I will try do it again though as I really need it. Will share the modified workflow if I manage it. Edited August 4, 2017 by nikivi Link to comment
Tonycr46 Posted August 4, 2017 Author Share Posted August 4, 2017 nikivim I would be interested to see what you can accomplish. I was watching the Alfred Workflows Part 2 at screencastsonline.com. It was interesting and helpful, but I don't have the knowledge to tackle the Google search workflow. Tony Link to comment
derBingle Posted August 4, 2017 Share Posted August 4, 2017 (edited) I have this set up as a custom search in Alfred, with "gly" (Google Last Year) as the keyword. The url in your custom search needs to be: https://www.google.com/#q={query}&tbs=qdr:y&* Here's a screenshot of the setup pane: Hope that helps! Bing Edited August 4, 2017 by derBingle Link to comment
Tonycr46 Posted August 5, 2017 Author Share Posted August 5, 2017 Bing, Thanks so much!!! Worked like a charm. I had forgotten about the options available under the features tab. Had my mind on workflows. Now I'm going to have to go through the features and see what kind of things I can do there! Tony derBingle 1 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