Skip to content

Instantly share code, notes, and snippets.

@sh1n0b1
Created March 1, 2019 21:07
Show Gist options
  • Save sh1n0b1/ac3590f6c5a154e019316f64ea9c90c9 to your computer and use it in GitHub Desktop.
Save sh1n0b1/ac3590f6c5a154e019316f64ea9c90c9 to your computer and use it in GitHub Desktop.
URL decode one-liner command
alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'
@scruss
Copy link

scruss commented Jun 12, 2025

for python3:

alias urldecode='python3 -c "import sys;from urllib.parse import unquote_plus;print(unquote_plus(sys.argv[1]))"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment