Python 爬虫 根据属性值关键字搜索标签

# <div class='\"name\"'>客如云</div>
company_name = soup.find_all('div',class_=re.compile("name"))

  

参考 https://blog.csdn.net/huochuangchuang/article/details/49742295

参考 https://www.cnblogs.com/my1e3/p/6657926.html

猜你喜欢

转载自www.cnblogs.com/littlebob/p/9219747.html