摘要: 一、xpath库使用: 1、基本规则: 2、将文件转为HTML对象: 3、属性多值匹配: //a[contains(@class,'li')] 4、多属性匹配: //a[@class="a" and @font="red"] 5、按序选择: 二、beautifulsoup库学习: 1、基本初始化: 阅读全文
posted @ 2018-11-14 21:38 monty12 阅读(245) 评论(0) 推荐(0) 编辑