Skip to content

Instantly share code, notes, and snippets.

@narate
Created August 11, 2017 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save narate/68d4a0730cc60a06b9b09727efd836e0 to your computer and use it in GitHub Desktop.
Save narate/68d4a0730cc60a06b9b09727efd836e0 to your computer and use it in GitHub Desktop.
URL decoder command line toots written in Python
#!/usr/bin/env python
'''
Usage :
$ echo encoded_url | python url-decoder.py
'''
import sys
import urllib
data = sys.stdin.read()
print(urllib.unquote(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment