zholmquist Posted May 31, 2013 Share Posted May 31, 2013 Giphy ( http://giphy.com ) is a great way to find animated gifs, Alfred is a great way to quickly do something. I need a quick to find animated gifs, and so a Giphy Workflow was born: https://github.com/zholmquist/alfred-giphy-search NOTE: For some reason it tacks on a space at the end, if anyone knows how to get rid of that it'd be appreciated knowledge. Link to comment
vitor Posted May 31, 2013 Share Posted May 31, 2013 (edited) It’s not a space, it’s a newline. You’re outputting it when you use python’s print, and it’s then being read by the bash command. You can pretty much replace the python and bash modules with a single bash module containing search=$(echo "{query}" | sed 's/ /-/g') open "http://giphy.com/tags/${search}" That’ll do the same thing (without the extra stuff at the end of the url), with less code. Edited May 31, 2013 by Vítor zholmquist 1 Link to comment
dustonio Posted September 18, 2018 Share Posted September 18, 2018 @zholmquist Thanks for this! Quick and simple! 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