I wanted to POST some data to a site using python.
Suppose the data are the following:
payload = {
'key': 'value',
'user-point-form-1': random_data #the data I want to post
}
and the html where I want to post that is:
<div class="alert-user-point-a"></div>
<input type="hidden" id="user-point-form-1" value="XXXXXXXXX">
I tried doing response = s.post(url, data=payload) but it seem didnt work. How should I change the request so I post the data where the "XXXXXX" is?
POST?svariable?siss = requests.Session()a few lines aboverandom_dataand what do you see when you're printing it to stdout ?random_data="just a text"and am not printing anything in the stdout, just checking if the changes applied to the value on the online site