예제 #1
0
 def is_online():
     try:
         serveo = requests.get("http://serveo.net", timeout=5)
         if "temporarily disabled" in serveo.text:
             return False
         return True
     except:
         return False
예제 #2
0
def verify_connection(host='https://google.com'):  # Bypass problem
    run_command('clear')
    try:
        req = requests.get(host, timeout=25)
        if req.status_code == 200:
            print(localization.lang_verify_connection["connected"])
            pass
    except:
        print(localization.lang_verify_connection["disconnected"])
        print(global_localization.hidden_eye_logo)
        print(localization.lang_verify_connection["verify_your_connection"])
        exit()
예제 #3
0
 def is_online():
     serveo = requests.get("http://serveo.net")
     if "temporarily disabled" in serveo.text:
         return False
     return True