python 爬蟲三大解析資料方法:xpath 及爬段子網案例 ... pip install lxml ... 定位後text()取文字 etree.xpath('//div[@class="song"]/p[1]/text()') ...
確定! 回上一頁