Skip to content

Instantly share code, notes, and snippets.

@rm--
Created March 1, 2018 15:41
Show Gist options
  • Save rm--/3d4509e617c2e7cf9965cd3d137de99d to your computer and use it in GitHub Desktop.
Save rm--/3d4509e617c2e7cf9965cd3d137de99d to your computer and use it in GitHub Desktop.
url encode and decode in python (alias)
urlencode='python3 -c "import sys, urllib.parse as ul; print(ul.quote_plus(sys.argv[1]))"'
urldecode='python3 -c "import sys, urllib.parse as ul; print(ul.unquote_plus(sys.argv[1]))"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment