From d6d976f4e1d6d04dfe7298518aed4eda1031b407 Mon Sep 17 00:00:00 2001 From: WebBreacher Date: Thu, 9 Sep 2021 16:11:49 -0400 Subject: [PATCH] fixing sites and adding useragent Fixed sites: mastodon, minecraft list, tiktok and added useragent to checker script --- check_online_presence.py | 3 ++- web_accounts_list.json | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/check_online_presence.py b/check_online_presence.py index ceca65df..1b3fe4b4 100755 --- a/check_online_presence.py +++ b/check_online_presence.py @@ -18,7 +18,8 @@ # Set HTTP Header info. HEADERS = {'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language' : 'en-US,en;q=0.5', - 'Accept-Encoding' : 'gzip, deflate' + 'Accept-Encoding' : 'gzip, deflate', + 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36" } # Command line input diff --git a/web_accounts_list.json b/web_accounts_list.json index ee78c7ad..6f5b2cb9 100644 --- a/web_accounts_list.json +++ b/web_accounts_list.json @@ -390,7 +390,7 @@ "name" : "mastodon", "check_uri" : "https://mastodon.social/@{account}", "account_existence_code" : "200", - "account_existence_string" : "toots", + "account_existence_string" : "profile:username", "account_missing_string" : "The page you are looking for isn't here.", "account_missing_code" : "404", "known_accounts" : ["john", "alex"], @@ -1112,7 +1112,7 @@ "account_existence_code" : "200", "account_existence_string" : "member-since", "account_missing_string" : "", - "account_missing_code" : "302", + "account_missing_code" : "301", "known_accounts" : ["yellowdd","samanvay"], "category" : "shopping", "valid" : true @@ -1623,9 +1623,9 @@ "check_uri" : "https://minecraftlist.com/players/{account}", "account_existence_code" : "200", "account_existence_string" : "-->was seen on