Q:

url encoded path using python

>>> import urllib
>>> urllib.quote('Hello World@Python2')
'Hello%20World%40Python2'
1
#Python3
import urllib
print (urllib.parse.quote('gitlab/gith', safe=''))
>>> gitlab%Fgith
0

New to Communities?

Join the community