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

posted @ 2018-06-24 10:19  littlebob  阅读(3949)  评论(0编辑  收藏  举报