Created
December 16, 2014 11:47
-
-
Save rochoa/e1cd9d7733be13d96e3b to your computer and use it in GitHub Desktop.
urlencode from stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import urllib | |
print urllib.quote_plus(sys.stdin.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment