代理IP 设置

检测IP : http://httpbin.org/get
(返回你的请求信息)

#方式1
import urllib.request

url = 'https://httpbin.org/get'
proxy_collection = urllib.request.ProxyHandler({
    'https':'183.129.207.86:14478'
    })
opener = urllib.request.build_opener(proxy_collection)

resp = opener.open(url)

print(resp.read().decode('utf-8'))

#方式2
import requests
proxies = {
    'http':'60.13.42.171:9999',
    'https':'123.169.125.111:9999'
    }
resp = requests.get('https://httpbin.org/get',proxies = proxies)
print(resp.content.decode('utf-8'))

免费ip代理总结(原文链接:https://blog.youkuaiyun.com/u013762572/article/details/85646105)
西刺代理

http://www.xicidaili.com

快代理

https://www.kuaidaili.com

云代理

http://www.ip3366.net

无忧代理

http://www.data5u.com/

360 代理

http://www.swei360.com

66ip 代理

http://www.66ip.cn

ip 海代理

http://www.iphai.com

大象代理

http://www.daxiangdaili.com/

米扑代理

https://proxy.mimvp.com/freesecret.php

站大爷

http://ip.zdaye.com/

讯代理

http://www.xdaili.cn/

蚂蚁代理

http://www.mayidaili.com/free

89免费代理

http://www.89ip.cn/

全网代理

http://www.goubanjia.com/buy/high.html

开心代理

http://ip.kxdaili.com/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值