bin: urlencode + urldecode
This commit is contained in:
parent
f31ae3016a
commit
5f2cbf20fa
2 changed files with 22 additions and 0 deletions
11
bin/urldecode
Executable file
11
bin/urldecode
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
from urllib.parse import unquote
|
||||
|
||||
args = sys.argv[1:]
|
||||
if len(args) > 0:
|
||||
for arg in args:
|
||||
print(unquote(arg))
|
||||
else:
|
||||
print(unquote(sys.stdin.read()), end='')
|
||||
Loading…
Add table
Add a link
Reference in a new issue