I try to scrape productId of a product but i can not. please help
html code
<span class="info">
<button data-product="{"merchantName":"xxx","price":"11","productName":"car window","categoryName":"windows","brandName":"aa assosiations","productId":"which I want to scrape"}">
when I try
h.ChildAttr("span.info>button", "data-product")
result is {"merchantName":"xxx","price":"11","productName":"car window","categoryName":"windows","brandName":"aa assosiations","productId":"which I want to scrape"}
and when I try
h.ChildAttr("span.info>button", "productId")
there is no result. how can I get this data with colly?