1.xpath过滤 //*[@id='main_body']/div/ul/li/a[@href] 2.foreach 循环获取链接 3.打开网页 转载于:https://www.cnblogs.com/kllay/p/8832348.html