I'm trying to work my way through some web scraping stuff with the requests library and I've stumbled across encrypted POST data. What I'd like to do is programmatically find a way to retrieve the key names of the POST variables so that I could send my own unfiltered values through. Is there a way to do this and could someone explain it to me or point me in the right direction?
import requests
s = requests.Session('http://thiswebsite.com/login', auth=('username','password'))
# Find some way to determine what k is for POST variables in k,v
params = {
'INeedThis' : 'So I can pass this',
'AndAlsoThis' : 'So I can pass this too',
'AndSoOn' : 'etc'
}
x = post('http://thiswebsite.com/anotherpage', params)
print x.status_code