Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

build url python

import urllib.parse
url = 'https://example.com/somepage/?'
params = {'var1': 'some data', 'var2': 1337}
print(url + urllib.parse.urlencode(params))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #build #url #python
ADD COMMENT
Topic
Name
7+3 =