Jump to content
zholmquist

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...