# -*- coding:utf-8 -*-
import requests

url = 'http://www.baidu.com/'
proxies = {
    'http': 'http://192.168.127.12:8060',
    'https': 'https://192.168.127.12:8060'
}

# # 付费代理,用户名：密码@ip和port
# 付费代理,用户名:密码@ip和port
# proxies = {
#     'http':'http://user:pwd@172.16.31.10:9000' # http基于
# }

response = requests.get(url, proxies=proxies)
print(response.text)

# -*- coding:utf-8 -*-
import requests

url = 'http://www.baidu.com/'
proxies = {
    'http': 'http://192.168.127.12:8060',
    'https': 'https://192.168.127.12:8060'
}

# # 付费代理,用户名：密码@ip和port
# 付费代理,用户名:密码@ip和port
# proxies = {
#     'http':'http://user:pwd@172.16.31.10:9000' # http基于
# }

response = requests.get(url, proxies=proxies)
print(response.text)

# -*- coding:utf-8 -*- # # 付费代理,用户名：密码@ip和port # 付费代理,用户名:密码@ip和port # proxies = { #     'http':'http://user:pwd@172.16.31.10:9000' # http基于 # }