Browse Source

removed NIM, you don't need it. and added both page to process at once

master
myitinos 2 years ago
parent
commit
b68f86158e
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      getEarlyResult.py

+ 9
- 4
getEarlyResult.py View File

@ -1,15 +1,20 @@
#!/usr/bin/python2
import requests
HOST = "172.16.61.64"
NIM = "180010100"
def main():
result_page = requests.get("http://%s/private.php" %
HOST, allow_redirects=False)
private_page = requests.get("http://%s/private.php" %
HOST, allow_redirects=False)
with open('private.html', 'w') as file:
file.write(result_page.text)
file.write(private_page.text)
count_page = requests.get("http://%s/count.php" %
HOST, allow_redirects=False)
with open('count.html', 'w') as file:
file.write(count_page.text)
if __name__ == '__main__':

Loading…
Cancel
Save