From d7c6f1d1ba9131d2a58d5833bb141a51818fe297 Mon Sep 17 00:00:00 2001 From: PinLin Date: Wed, 9 Aug 2017 14:50:39 +0800 Subject: [PATCH] list questions too slow --- access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.py b/access.py index d9c1b57..d0054b4 100644 --- a/access.py +++ b/access.py @@ -33,7 +33,7 @@ class kuser_api: def list_questions(self): try: questions = {} - response = self.session.get(config.URL + '/HomeworkBoard', timeout=0.1) + response = self.session.get(config.URL + '/HomeworkBoard', timeout=0.5) soup = BeautifulSoup(response.text, 'html.parser') for tag in soup.find_all('tr'): if tag.find('a') == None: