我艹你妈
发表于 2016-7-30 12:15:57
请问11
发表于 2016-7-30 15:54:25
{:5_94:}
其实我不帅
发表于 2016-7-30 16:26:34
回复可见代码~{:5_93:}
叶落·知秋至
发表于 2016-7-30 17:50:27
看看
nihaoz
发表于 2016-7-30 20:27:00
谢谢分享!
devinme
发表于 2016-7-31 17:35:53
kankan
z1770197637
发表于 2016-8-1 07:54:34
回复可见{:5_109:}
439017985
发表于 2016-8-1 09:21:18
好东西 ,看看啦,赞一个
terryzhangcy
发表于 2016-8-1 11:29:18
import urllib.request
import re
def open_url(url):
req = urllib.request.Request(url)
req.add_header('User-Agent','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)\
AppleWebKit/537.36 (KHTML, like Gecko)\
Chrome/51.0.2704.103 Safari/537.36')
response = urllib.request.urlopen(req)
html = response.read().decode('utf-8')
return html
def get_ip(url='http://www.kuaidaili.com/free/inha/'):
q = r'(?:(?:?\d?\d|2\d|25)\.){3}(?:?\d?\d|2\d|25)'
p = r'(?<="PORT">)\d+'
proxy_ip = []
while True:
count = 1
num = 0
html = open_url(url + str(count))
count += 1
ips = re.findall(q,html)
ports = re.findall(p, html)
for each_ip in ips:
proxy_ip.append(each_ip + ':' + ports)
num += 1
for i in proxy_ip:
print(i)
if len(proxy_ip) > 100:
break
return proxy_ip
if __name__ == '__main__':
get_ip()
欢颜
发表于 2016-8-1 13:38:41
查看代码
mt880607
发表于 2016-8-1 19:20:05
小甲鱼使用的代理已经
蒋氏科技
发表于 2016-8-1 20:44:22
我要我要
庚午
发表于 2016-8-1 21:49:33
{:5_91:}
cuyongping
发表于 2016-8-2 22:30:19
谢谢分享!呵呵
zd0591
发表于 2016-8-3 09:33:43
感谢。看看
138510503
发表于 2016-8-3 12:25:02
看看代码,学习
Huanghousec
发表于 2016-8-4 01:00:04
看看代码咋写的
qq1990086708
发表于 2016-8-4 15:44:18
{:5_91:}6
ljrlove2010
发表于 2016-8-4 19:23:38
感谢楼主无私奉献!
lflittlegrass
发表于 2016-8-5 08:29:43
非常感谢楼主的无私分享!
页:
1
2
[3]
4
5
6
7
8
9
10
11
12