I'm using the Requests module and Python 3. when I inspect in Chrome, If the parsed form data is listed as:
list_class_values[notice][zipstate]:
list_class_values[notice][type][]:
list_class_values[notice][keywords]:colorado
In the above case, I'm searching for 'colorado'. What is the proper syntax to list them in the 'payload' section, given the below code snippet? the content-type is "application/x-www-form-urlencoded".
payload = {"list_class_values[notice][zipstate]":"None", "list_class_values[notice][type][]":"None", "list_class_values[notice][keywords]":"colorado"}
r = requests.post(url='http://www.example.com', payload=payload, headers=headers)
print(r.content)
Do I need a tuple in there somewhere? e.g. "list_class_values(notice,keywords)":"colorado" ? as the data doesn't change when I change the keyword..