From 47e5b79039d101a99a819be86b364fb57802862e Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 14 May 2017 16:12:29 +0300 Subject: [PATCH] Print message for ISPs we need extra data for --- blockcheck.py | 14 ++++++++++++++ we_need_your_help_isp_list.txt | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 we_need_your_help_isp_list.txt diff --git a/blockcheck.py b/blockcheck.py index 3608d4f..83880c5 100755 --- a/blockcheck.py +++ b/blockcheck.py @@ -973,6 +973,20 @@ def print_http_result(symbol, message): # keep it silent pass + if ip_isp: + need_help_isp_list = _get_url( + "https://raw.githubusercontent.com/ValdikSS/blockcheck/master/we_need_your_help_isp_list.txt") + if need_help_isp_list[0] == 200: + need_help_isp_list = need_help_isp_list[1] + for need_help_isp in need_help_isp_list.split("\n"): + need_help_isp = need_help_isp.strip().lower() + if need_help_isp and need_help_isp in ip_isp[1].lower(): + print() + print("[⚠] Нам нужна ваша помощь!\n", + "Пожалуйста, помогите собрать расширенные данные о вашем провайдере:\n", + "https://github.com/ValdikSS/blockcheck/wiki/Нужна-ваша-помощь" + ) + if __name__ == "__main__": if getattr(sys, 'frozen', False): os.environ['SSL_CERT_FILE'] = os.path.join(sys._MEIPASS, 'lib', 'ca-certificates.crt') diff --git a/we_need_your_help_isp_list.txt b/we_need_your_help_isp_list.txt new file mode 100644 index 0000000..98ce9cc --- /dev/null +++ b/we_need_your_help_isp_list.txt @@ -0,0 +1,8 @@ +VIPLine +Mastertel +Intersat +SEVTELEKOM +CRELCOM +VL-Telecom +BC-Telecom +FarLine