From eb144318a5eb1e4641e7e41a29ed58239e2ea0f1 Mon Sep 17 00:00:00 2001 From: qb-auto Date: Tue, 13 Apr 2021 04:03:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 ++-- clean-up.logs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 1ae597b..4b57ddd 100755 --- a/app.py +++ b/app.py @@ -50,7 +50,7 @@ SITES_PATH = path.join(path.dirname(__file__), "data", "sites.json") LANGUAGES_PATH = path.join(path.dirname(__file__), "data", "languages.json") STRINGS_PAGES = recompile('captcha-info|Please enable cookies|Completing the CAPTCHA', IGNORECASE) STRINGS_TITLES = recompile('not found|blocked|attention required|cloudflare', IGNORECASE) -STRINGS_META = recompile('regionsAllowed|width|height|color|rgba\(|charset|viewport|refresh|equiv', IGNORECASE) +STRINGS_META = recompile(r'regionsAllowed|width|height|color|rgba\(|charset|viewport|refresh|equiv', IGNORECASE) LANGUAGES_JSON = {} WORKERS = 15 CUSTOM_MESSAGE = 51 @@ -273,7 +273,7 @@ def find_username_normal(req): with suppress(Exception): session = Session() session.headers.update(headers) - response = session.get(site["url"].replace("{username}", username),timeout=5, verify=False) + response = session.get(site["url"].replace("{username}", username), timeout=5, verify=False) source = response.text content = response.content answer = dict((k.lower(), v.lower()) for k, v in response.headers.items()) diff --git a/clean-up.logs b/clean-up.logs index 8ff42ed..a13fa26 100755 --- a/clean-up.logs +++ b/clean-up.logs @@ -1,4 +1,4 @@ -Tue Apr 13 03:14:26 UTC 2021 +Tue Apr 13 04:03:12 UTC 2021 [X] social-analyzer [X] installing autopep8 & jq [X] running autopep8