ver=30# Move this to config file for player to bump up at their leisure.
browse=f'MCCDV/{apiver}'
#browse="Mozilla/5.0 (Linux; Android 8.0.0; SHIFT6m Build/O00623; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36" TODO: Use this or similar for masking client
# This function only really needs to return a P value (which it should actually just store in conf instead), and current login state. I suppose returning newsposts is good too, since they're there.
deflogin(un,pw):
pag=post('login',{'id':un,'pass':pw})# We don't actually care about the result of this. We know exactly what comes next. Though this would be useful for error handling, I suppose.
pag2=post('login_conf',{'id':un,'pass':pw})# We also don't care about this; if we got this far, it's guaranteed to succeed. Probably should still parse it and check, JUST IN CASE.