diff --git a/xiaoguo_scanner.py b/xiaoguo_scanner.py index ed1cfe2..e467c61 100644 --- a/xiaoguo_scanner.py +++ b/xiaoguo_scanner.py @@ -224,7 +224,7 @@ def check_stock(code, name, articles): req = urllib.request.Request(XIAOGUO_API, data=payload, headers={"Content-Type": "application/json"}, method="POST") try: - resp = opener.open(req, timeout=15) + resp = opener.open(req, timeout=30) reply = json.loads(resp.read())["choices"][0]["message"]["content"] if "有关" in reply or "利好" in reply or "利空" in reply: for s in ["利好", "利空", "中性"]: