Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Forked from narate/url-decoder.py
Created October 30, 2018 08:10

Revisions

  1. @narate narate created this gist Aug 11, 2017.
    11 changes: 11 additions & 0 deletions url-decoder.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/usr/bin/env python

    '''
    Usage :
    $ echo encoded_url | python url-decoder.py
    '''
    import sys
    import urllib

    data = sys.stdin.read()
    print(urllib.unquote(data))