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()