摘要: 代码如下 阅读全文
posted @ 2018-04-23 22:48 brady-wang 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 循环的版本 阅读全文
posted @ 2018-04-23 16:35 brady-wang 阅读(1601) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import re from lxml import etree import requests def requests_view(response): import webbrowser requests_url = response.url base_url = '' %(requests_url) base_url = bas... 阅读全文
posted @ 2018-04-23 15:36 brady-wang 阅读(312) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import re from lxml import etree import requests response = requests.get("http://yeves.cn/") content = response.content.decode() html = etree.HTML(content) res = html.xpath('/html/bo... 阅读全文
posted @ 2018-04-23 15:15 brady-wang 阅读(309) 评论(0) 推荐(0) 编辑