From b3dc4ebf8ed1b7d61097d42771d7cdcd3a726291 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 21 Mar 2024 08:57:38 +0000 Subject: [PATCH] Move User-Agent string to config file --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.py b/check.py index d7a4108..05d52b4 100755 --- a/check.py +++ b/check.py @@ -58,7 +58,7 @@ warnings.filterwarnings("ignore", category=InsecureRequestWarning) re_title = re.compile("(.*?)", re.DOTALL) -AGENT = "Mozilla/5.0 (Windows NT 6.1) Gecko/20100101 Firefox/29.0" +AGENT = config["browser"]["User-Agent"] headers = {"User-Agent": AGENT, "Accept": "text/html"} s = requests.Session()