摘要: 爬虫 1.xpath的使用定位标签 索引的定位[] tree.xpath('//li[index]')定位Li标签下的第一个,xpath是从1开始定位的 属性定位 tree.xpath('//div[@class="song"]') 先定位标签为div再定位属性class=song 标签定位 tre 阅读全文
posted @ 2020-05-26 21:46 wswgot 阅读(88) 评论(0) 推荐(0) 编辑