Jump to content

Search Animated Gifs Workflow

Recommended Posts

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 by Vítor
Link to comment
  • 3 weeks later...
  • 5 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...