Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

url decode python

>>> import urllib.parse
>>> encodedStr = 'My+name+is+Rajeev'
>>> urllib.parse.unquote_plus(encodedStr)
'My name is Rajeev'
Comment

decode url python

from urllib.parse import unquote

url = unquote(url)


#Demo
>>> from urllib.parse import unquote
>>> url = 'example.com?title=%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D0%B0'
>>> unquote(url)
'example.com?title=правовая+защита'
Comment

PREVIOUS NEXT
Code Example
Python :: how to create a car game using python 
Python :: python read file without newline 
Python :: requirements file generate django 
Python :: how to find and replace all the punctuation in python strings 
Python :: discord.py change status 
Python :: upgrade python to 3.8 
Python :: matplotlib x axis at the top 
Python :: pandas read_csv random rows 
Python :: convert integer to datetime in python 
Python :: how to get all file names in directory python 
Python :: numpy normal distribution 
Python :: python get command line arguments 
Python :: how to set default python version in macos 
Python :: python os get output 
Python :: how to start ftpd server with python 
Python :: area of a circle in python 
Python :: how to count down in python using turtle graphics 
Python :: flask post 
Python :: python3.9 venv returned non-zero exit status 1 
Python :: get object attributes python 
Python :: access to numbers in classification_report - sklearn 
Python :: get ip from request django 
Python :: check palindrome in python using recursion 
Python :: python list add if not present 
Python :: discord.py create text channel 
Python :: dict to bytes python 
Python :: code hand tracking 
Python :: python shortest path of list of nodes site:stackoverflow.com 
Python :: talos get best model 
Python :: matplotlib subtitle 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =