Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Print message for ISPs we need extra data for
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed May 14, 2017
1 parent 8b71c6c commit 47e5b79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions blockcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 8 additions & 0 deletions we_need_your_help_isp_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VIPLine
Mastertel
Intersat
SEVTELEKOM
CRELCOM
VL-Telecom
BC-Telecom
FarLine

0 comments on commit 47e5b79

Please sign in to comment.