-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.py
26 lines (20 loc) · 807 Bytes
/
main.py
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
from Fifa14Client import LoginManager
from Fifa14Client import WebAppFunctioner
import ConfigParser
from extra import EAHash
def do_main():
Config = ConfigParser.ConfigParser()
Config.read("accounts_example.ini")
for section in Config.sections():
email = Config.get(section, 'Email')
password = Config.get(section, 'Password')
secret_answer = Config.get(section, 'Secret')
security_hash = EAHash.EAHashingAlgorithm().EAHash(secret_answer)
platform = Config.get(section, 'Platform')
login = LoginManager.LoginManager(email,password,security_hash,platform)
login.login()
func = WebAppFunctioner.WebAppFunctioner(login)
print(func.get_coin_amount())
print(func.search())
if __name__ == "__main__":
do_main()