Skip to content

Instantly share code, notes, and snippets.

@antun
Last active July 15, 2022 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antun/4964120 to your computer and use it in GitHub Desktop.
Save antun/4964120 to your computer and use it in GitHub Desktop.
URL unencodes (decodes) a string passed via command line
#!/usr/bin/env python
import sys, urllib
if __name__ == '__main__':
args = sys.argv[1:]
for arg in args:
print urllib.unquote( arg )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment