You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
829 B

#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}",
}