Не поддерживается схема прокси [Python3] [Модуль запросов] - PullRequest
0 голосов
/ 15 июня 2019

Я пытаюсь создать некоторый код, который подключается к прокси, я написал весь код, но получаю сообщение об ошибке:

urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme 37.59.8.29

Мой код выглядит примерно так:

proxie_list = open(dir_path + "/proxies.txt", 'r').readlines()
print(proxie_list[i])
i = i
proxies = {
    'http': proxie_list[i] ,
    'https': proxie_list[i] ,
}

# Create the session and set the proxies.
s = requests.Session()
s.proxies = proxies

# Make the HTTP request through the session.
r = s.get('http://httpbin.org/ip')

# Check if the proxy was indeed used (the text should contain the proxy IP).
print(r.text)

Помощь очень ценится!

...