【发布时间】:2017-06-29 15:15:32
【问题描述】:
我正在使用以下代码来查找具有“产品类别”类的标签。
soup0.findAll("a",{"class":"product-category"})
如果我需要找到一个类以product-category 开头的标签,我该怎么写。 我尝试使用
soup0.findAll("a",{"class":%"product-category"}) ##This doesnt work.
有什么办法吗?
谢谢,
【问题讨论】:
标签: python html web web-scraping beautifulsoup