-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (27 loc) · 858 Bytes
/
Copy pathmain.py
File metadata and controls
33 lines (27 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#Fill out config.json and make sure to capitalize first letter in firstName before running
import requests
import json
try:
config = open('myConfig.json')
except:
config = open('config.json')
config = json.load(config)
s = requests.session()
formData = {
"faction": 42,
"serial": 4980058,
"email": config["email"],
"password": config["password"]
}
res = s.post("https://mountdiablodriversed.com/course/content/page/userfront_login", data = formData)
if res.text.find(config["firstName"]) != -1:
print("Login Success")
else:
print("Login Fail")
exit()
seconds = 0
s.get("https://mountdiablodriversed.com/course/content/page/course_lesson/lesson/7.3/su/1")
while True:
seconds += 5
res = s.get("https://mountdiablodriversed.com/course/content/page/course_lesson/lesson/7.3/su/5")
print(f"{res} {seconds}s")