diff options
author | Vee9ahd1 <[email protected]> | 2019-05-20 20:34:08 -0400 |
---|---|---|
committer | Vee9ahd1 <[email protected]> | 2019-05-20 20:34:08 -0400 |
commit | 312ebd0a901964ad282b41441347b1b71e1dd24c (patch) | |
tree | a9793ae115de522b61280b72e6c8edbeb138b984 /gantools/ganbreeder.py | |
parent | 3b1464dfb308af0a3eb6f23277a6988091fae6f9 (diff) |
finished work on v0.0.1
Diffstat (limited to 'gantools/ganbreeder.py')
-rw-r--r-- | gantools/ganbreeder.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gantools/ganbreeder.py b/gantools/ganbreeder.py index 2e7f946..22d1adf 100644 --- a/gantools/ganbreeder.py +++ b/gantools/ganbreeder.py @@ -43,3 +43,10 @@ def get_info(sid, key): r = requests.get('http://ganbreeder.app/info?k='+str(key), cookies=cookies) r.raise_for_status() return(r.json()) + +def get_info_batch(username, password, keys): + l = list() + sid = login(username, password) + for key in keys: + l.append(get_info(sid, key)) + return l |