Answers for "url encoding in python"

1

python url encoding

>>> import urllib
>>> f = { 'eventName' : 'myEvent', 'eventDescription' : 'cool event'}
>>> urllib.urlencode(f)
'eventName=myEvent&eventDescription=cool+event'
Posted by: Guest on January-30-2021
0

url encoded path using python

#Python3
import urllib
print (urllib.parse.quote('gitlab/gith', safe=''))
>>> gitlab%Fgith
Posted by: Guest on June-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language