aboutsummaryrefslogtreecommitdiff
path: root/gantools/ganbreeder.py
diff options
context:
space:
mode:
authorVee9ahd1 <[email protected]>2019-05-20 20:34:08 -0400
committerVee9ahd1 <[email protected]>2019-05-20 20:34:08 -0400
commit312ebd0a901964ad282b41441347b1b71e1dd24c (patch)
treea9793ae115de522b61280b72e6c8edbeb138b984 /gantools/ganbreeder.py
parent3b1464dfb308af0a3eb6f23277a6988091fae6f9 (diff)
finished work on v0.0.1
Diffstat (limited to 'gantools/ganbreeder.py')
-rw-r--r--gantools/ganbreeder.py7
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