Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Forked from narate/url-decoder.py
Created October 30, 2018 08:10
Show Gist options
  • Save lopesivan/719ceb29cd06f5d9a138c21d54c9c823 to your computer and use it in GitHub Desktop.
Save lopesivan/719ceb29cd06f5d9a138c21d54c9c823 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