I\'m using the Python requests package to send http requests. I want to add a single proxy to the requests session object. eg.
session = requests.Session()
s
In fact, you are right, but you must ensure your defination of 'line', I have tried this , it's ok:
>>> import requests
>>> s = requests.Session()
>>> s.get("http://www.baidu.com", proxies={'http': 'http://10.11.4.254:3128'})
Did you define the line like line = ' 59.43.102.33:80'
, there is a space at the front of address.