Passing parameters in url using python scripting -


my need : want pass payload in each parameter , result stored in text file. want know how pass payload parameters in url using python

fyi : pulling url text file , writing output text file.

need pass parameter in between = &

ex url : http://apps.hello.com/appeditprofile/appeditprofileupdate.php&marital_status=1&encid=d961e7e192042c955bde7b68e38c25a72&tofeet=5-8&fromfeet=4-5&

i recommend using urllib handle encodings well. building off of arshid’s example:

import urllib url = 'http://example.com' params = { 'var1': 'test', 'name': 'arshid' } url = '%s?%s' % (url, urllib.urlencode(params),) 

you can see examples here more info.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -