From bd671a449263c9f8969a48f658fb1c11227a0daa Mon Sep 17 00:00:00 2001 From: matthias Date: Wed, 25 Sep 2019 10:05:24 +0000 Subject: [PATCH] Added automatic renew of all lent books --- bibcheck.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bibcheck.py b/bibcheck.py index 2152391..5ae74f3 100644 --- a/bibcheck.py +++ b/bibcheck.py @@ -19,6 +19,8 @@ def main(): response = br.submit() br.follow_link(text_regex=r"Konto") response = br.follow_link(text_regex=r"Ausleihe zeigen") + br.select_form('Form0') + response = self.br.submit(name='textButton$0', label='Alle verlängern') lentlist = bs4.BeautifulSoup(response.read(), 'html.parser') table = lentlist.select('table[class="rTable_table"]')[0] import urllib.request