#import urllib.request as request # url = 'https://ipinfo.io' # username = 'MQlbuTVPhwhOwYlyerwBLuzKI' # password = 'znzqUZwnYucVbaMUIJhgJlNpX' # proxy = (f'http://{username}:{password}@server.proxyland.io:9090') # query = request.build_opener(request.ProxyHandler({ 'http': proxy })) # print(query.open(url).read()) # url = "http://api.ipify.org/" # r = requests.get(url, proxies=proxy) # print(r.text) # exit() mode ='few' print(any([mode == "few", mode == "solo"])) exit() proxy_resp = requests.get('https://server.proxyland.io') print(proxy_resp.headers['Proxy-Authenticate']) server = 'server.proxyland.io:9090' pwd = 'znzqUZwnYucVbaMUIJhgJlNpX' user = 'MQlbuTVPhwhOwYlyerwBLuzKI' proxies = { "https": f"http://{user}:{pwd}@{server}", "http": f"https://{user}:{pwd}@{server}", }