From 312ebd0a901964ad282b41441347b1b71e1dd24c Mon Sep 17 00:00:00 2001 From: Vee9ahd1 Date: Mon, 20 May 2019 20:34:08 -0400 Subject: finished work on v0.0.1 --- gantools/ganbreeder.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gantools/ganbreeder.py') 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 -- cgit v1.2.1