start_prices = soup.select('#J_HoverShow > tr:nth-of-type(1) > td:nth-of-type(1) > span.pay-price > span')
consult_prices = soup.select('#J_HoverShow > tr:nth-of-type(3) > td:nth-of-type(2) > span.pay-price > span')
这是一个URL的两个数据,child已经改成了of-type,我爬的时候不报错,但是爬不下来。求指点
爬不下来么,一层一层的来爬嘛,看在哪层出错的。这样就容易发现问题了
如果返回结果没有,建议使用到上一层标签或者属性重新爬取。
https://www.zhihu.com/question/60064850 看这个,类似的问题。