Python之爬虫-段子网

https://ishuo.cn <https://ishuo.cn>
#!/usr/bin/env python # -*- coding:utf-8 -*- import re import requests
response = requests.get('https://ishuo.cn') data = response.text print(data) r
= re.findall('<div class="content">(.*?)</div>',data) for i in r: print(i)
http://duanziwang.com/ <http://duanziwang.com/>
#!/usr/bin/env python # -*- coding:utf-8 -*- import re import requests
response =requests.get('http://duanziwang.com/') data = response.text result =
re.findall('<a href="http://duanziwang.com/.*?.html">(.*?)</a>',data) for i in
result: print(i)

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:637538335
关注微信