Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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=правовая+защита'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decode #url #python
ADD COMMENT
Topic
Name
3+1 =