Browse Source

moved 'NIM' parameter to GLOBAL for easier editing

master
myitinos 2 years ago
parent
commit
f449f8f8bb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      pvote.py

+ 3
- 1
pvote.py View File

@ -3,13 +3,15 @@ import requests
from PemiraHelper import login, PemiraParser, ID_BALMA, ID_SEMA
HOST = "172.16.61.64"
NIM = "180010100"
def main():
parser = PemiraParser()
with requests.Session() as conn:
login_page = conn.post("http://%s/authenticate.php" % HOST, allow_redirects=True, data={
"nim": "180010100",
"nim": NIM,
"pass": "password",
"formSubmit": "Login"})

Loading…
Cancel
Save