|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 20192019 于 2019-9-22 15:31 编辑
<a href="http://www.qydaili.com/" target="_blank" data-type="img"><img src="img/hgg.png"></a><br><script type="text/javascript" src="js/jquery.min.js"></script>
<div id="adarea"onclick=location.href='http://www.qydaili.com/' style="cursor: pointer;display: none;position: fixed;right:15px;bottom:15px;width: 285px;height: 250px;background: url(/img/fkgg.png) no-repeat;">
<div id="adclose" style="cursor: pointer; position: absolute; top: 0px; right: 0px; display: block; width: 20px; height: 20px;font-family: cursive;background: url(img/close.png) no-repeat;" title="点击关闭"> </div>
</div>
<script type="text/javascript">
$(function(){
$('#adarea').slideDown(500);
$('#adclose').click(function(){
$('#adarea').slideUp(500);
});
});
</script>我只想要下面的ip怎么搞?
176.235.80.103:9090<br>177.125.243.12:3128<br>62.151.243.205:8080<br>188.17.148.31:36080<br>118.97.180.132:30793<br>77.38.21.239:8080<br>41.77.23.221:41049<br>117.197.116.89:8080<br>118.174.234.195:52236<br>130.117.173.182:60078<br>高效高匿名代理IP提取地址:http://www.qydaili.com/
我的代码:
import urllib.request
import re
url='http://www.89ip.cn/tqdl.html?api=1&num=10'
na=urllib.request.urlopen(url).read().decode('utf-8')
pat='</script>[0-9].*'
name=re.compile(pat,re.S).findall(na)
print(name)
- import re, requests
- url = 'http://www.89ip.cn/tqdl.html?api=1&num=10'
- html = requests.get(url).text
- pat = '(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})'
- name = re.findall(pat, html, re.M)
- print(name)
复制代码
|
|