zholmquist
-
Posts
2 -
Joined
-
Last visited
Reputation Activity
-
zholmquist reacted to vitor in Search Animated Gifs Workflow
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.