摘要: 阅读全文
posted @ 2018-04-10 22:35 Gaoyongxian666 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1.beautifulsoup https://www.crummy.com/software/BeautifulSoup/bs4/doc.zh/ pip install beautifulsoup4 1.1 解析库 建议lxml 1.2 解析 四个对象: tag对象的:string。gettext 阅读全文
posted @ 2018-04-10 20:43 Gaoyongxian666 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http请求,或者response都是二进制的 1.urllib不推荐用 1.1 python内置的HTTP请求库 urllib.request 请求 urllib.error 异常 urllib.parse url拼接 urllib.robotparse 不用 1.2urllib.request 阅读全文
posted @ 2018-04-10 19:18 Gaoyongxian666 阅读(208) 评论(0) 推荐(0) 编辑