« first day (1868 days earlier)      last day (1473 days later) » 

 
 
1 hour later…
Sam
3:50 PM
import os
import sys
import argparse
import requests
import socket
import struct
import urllib3
import urllib.request

parser = argparse.ArgumentParser(description="Get the IP Geolocation from an IP Address")
parser.add_argument("ip",help="Domain name or IP Address")
args = parser.parse_args()

if sys.version_info[0] < 3:
    print("You have to use Python 3 for this.")
    exit()



def internet_on():
    try:
        urllib.request.urlopen('https://ipinfo.io', timeout=1)
        return True
    except urllib.request.URLError as err:
 
1 message moved from Python
 
4:12 PM
@Code-Apprentice You are starting a culture war, sirrah... Bill O'Reilly will take up this one...
 
2 messages moved from Python
 

« first day (1868 days earlier)      last day (1473 days later) »