为什么这个links没有find到?
百度首页
#百度首页源码含有<a class=title-content href="https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E4%B8%89%E4%BA%9A%E5%87%BA%E7%A7%9F%E5%8F%B8%E6%9C%BA%E8%A2%AB%E5%BC%80&rsv_idx=2" target=_blank>三亚出租司机被开</a> #为什么以下代码解析不了上面那句links? ……………… links = soup.find_all('a') for link in links: print(link.name) print(link['target']) print(link.get_text()) print('\n')