If I have
example code:
url = "someurl"
values = {"username" : USERNAME,
"password" : PASSWORD}
data = urllib.parse.urlencode(values)
req = urllib.request.Request(url, data)
urllib.request.urlopen(req)
it passes username and password to the url that you request.
So I want to post a thread in a forum. When I look at the pages source I see
<input id='topic_title' class='input_text' type="text" size="50" maxlength="150" name="TopicTitle" value="" tabindex="0" />
Im not too familiar with http so what is the key I want to use for the values dict for that line?
topic_title? or input_text?... I dont wanna brute force it because people might get angry at like 20 test threads lol.
I help with a game after everytime I play said game I have to post a replay, it's sort of tedious so I wanna automate it.
edit:
<input type='button' id='add_files_attach_0' class='input_submit' value='Attach This File' style='display: none; clear: both' tabindex='1' /> <span class='desc' id='space_info_attach_0'>Used <strong>9.45MB</strong> of your <strong>976.56MB</strong> global upload quota (Max. single file size: <strong>256MB</strong>)
This is the source line for attaching files how would I attach them?