我尝试抓取产品的 productId,但我不能。请帮忙
html代码
<span class="info">
<button data-product="{"merchantName":"xxx","price":"11","productName":"car window","categoryName":"windows","brandName":"aa assosiations","productId":"which I want to scrape"}">
当我尝试
h.ChildAttr("span.info>button", "data-product")
结果是{"merchantName":"xxx","price":"11","productName":"car window","categoryName":"windows","brandName":"aa assosiations","productId":"which I want to scrape"}
当我尝试
h.ChildAttr("span.info>button", "productId")
没有结果。如何用 colly 获取这些数据?