4
我在美麗的湯中選擇這個'div'對象然後解析其中的數據時遇到了麻煩。用美麗的湯解析數據綁定HTML中的標記
首先,我必須解碼HTML網頁上的實體(如https://mothereff.in/html-entities)。
我將採取哪些步驟來,例如,以編程方式選擇
(海: '/ S3/fhphotos/CIRD-72K6-H9_SID_1.jpg,寬度= 1000 &高度= 1000 &模式= MAX')
從下面
<div data-bind="component: { name: 'product-detail', params: {hasVariants:true,name:'BROOKS LOUNGE CHAIR',hasCategory:true,superCategoryName:'Furniture',categoryDisplayName:'Living Room',categorySlug:'living-room',subcategoryDisplayName:'Chairs',subcategorySlug:'chairs',collection:{id:1529,name:'Irondale',description:'Each piece is a striking conversation-starter. Tables are made from reclaimed doors paired with salvaged architecture or old machine parts. Storage solutions are inspired by libraries of the 1940’s. Cast iron beds with linen panels as well as seating in linen, lush velvet and top-grain leather offer a distinctive found feel.',isFeatured:true,isNew:false,image:'/FourHandsMarketplace/media/General/Featured%20Collections/IRONDALE.jpg?width=500',shortDescription:'Moving from Parisian flea market to modern to industrial, understated elegance is a common theme. Waxed leathers and distressed irons mix with fabrics for an intriguing style blend.\r\n',uri:'/collections/irondale'},attributes:[{id:384,name:'COVER',displayOrder:30,swatches:true,values:[{id:12710,name:'EBONY',displayOrder:1,swatchUrl:'/s3/fhphotos/Y C11458-G6_PRM_1.jpg?width=200&height=200&mode=crop'},{id:12711,name:'STONEWASH DARK GREEN',displayOrder:2,swatchUrl:'/s3/fhphotos/Y C11458-H9_PRM_1.jpg?width=200&height=200&mode=crop'}]},{id:385,name:'FINISH',displayOrder:40,swatches:true,values:[{id:12712,name:'BLACK WASH WEATHERED',displayOrder:1,swatchUrl:'/s3/fhphotos/Y C11458-K5_PRM_1.jpg?width=200&height=200&mode=crop'},{id:12713,name:'DISTRESSED WASHED OLD OAK',displayOrder:2,swatchUrl:'/s3/fhphotos/Y C11458-K6_PRM_1.jpg?width=200&height=200&mode=crop'}]}],products:[{attributeValueIds:[12710,12712],description:'Our take on the classic Adirondack emphasizes comfort with thick, top-grain leather cushioning. Wire-brushed oak is finished in black and hand-distressed for a naturally weathered patina.',dimensions:'W: 27.75" H: 29" D: 34.75"',availabilityDescription:'<strong>Quantity in Stock: </strong><span >88</span><br /><strong>More on the Way: </strong><span >Yes</span><br /><strong>Estimated Arrival Date: </strong><span >1 to 2 weeks</span>',colors:['Black Washed Weathered','Ebony'],weightPounds:45.0,volumeCubicFeet:18.72,images:[{order:1,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_PRM_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_PRM_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_PRM_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_PRM_1.jpg'},{order:2,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_ROM_1.jpg'},{order:3,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_2.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_2.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_2.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_ROM_2.jpg'},{order:4,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_DET_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_DET_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_DET_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_DET_1.jpg'},{order:5,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_DET_2.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_DET_2.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_DET_2.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_DET_2.jpg'},{order:6,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_BCK_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_BCK_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_BCK_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_BCK_1.jpg'},{order:7,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_FRT_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_FRT_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_FRT_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_FRT_1.jpg'},{order:8,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_SID_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_SID_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_SID_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_SID_1.jpg'},{order:9,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_3.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_3.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_3.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_ROM_3.jpg'},{order:10,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_DET_3.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_DET_3.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_DET_3.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_DET_3.jpg'},{order:11,thumb:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_4.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_4.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K5-G6H6_ROM_4.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K5-G6H6_ROM_4.jpg'}],priceHtml:'$520.00',itemNumber:'CIRD-72K5-G6H6',name:'Brooks Lounge Chair-Ebony, Blk Wsh Weath',availableForImmediateShipment:true,isNew:false,isCloseout:false},{attributeValueIds:[12711,12713],description:'Our take on the classic Adirondack emphasizes comfort with green, stonewashed cotton canvas cushioning. Wire-brushed oak is hand-distressed for a naturally weathered patina.',dimensions:'W: 27.75" H: 29" D: 34.5"',availabilityDescription:'<strong>Quantity in Stock: </strong><span >147</span><br /><strong>More on the Way: </strong><span >Yes</span><br /><strong>Estimated Arrival Date: </strong><span >1 to 2 weeks</span>',colors:['Distressed Washed Old Oak','Stonewash Dark Green'],weightPounds:45.0,volumeCubicFeet:18.72,images:[{order:1,thumb:'/s3/fhphotos/CIRD-72K6-H9_PRM_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_PRM_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_PRM_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_PRM_1.jpg'},{order:2,thumb:'/s3/fhphotos/CIRD-72K6-H9_ROM_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_ROM_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_ROM_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_ROM_1.jpg'},{order:3,thumb:'/s3/fhphotos/CIRD-72K6-H9_ROM_2.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_ROM_2.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_ROM_2.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_ROM_2.jpg'},{order:4,thumb:'/s3/fhphotos/CIRD-72K6-H9_DET_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_DET_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_DET_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_DET_1.jpg'},{order:5,thumb:'/s3/fhphotos/CIRD-72K6-H9_DET_2.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_DET_2.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_DET_2.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_DET_2.jpg'},{order:6,thumb:'/s3/fhphotos/CIRD-72K6-H9_BCK_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_BCK_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_BCK_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_BCK_1.jpg'},{order:7,thumb:'/s3/fhphotos/CIRD-72K6-H9_FRT_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_FRT_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_FRT_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_FRT_1.jpg'},{order:8,thumb:'/s3/fhphotos/CIRD-72K6-H9_SID_1.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_SID_1.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_SID_1.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_SID_1.jpg'},{order:9,thumb:'/s3/fhphotos/CIRD-72K6-H9_ROM_3.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_ROM_3.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_ROM_3.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_ROM_3.jpg'},{order:10,thumb:'/s3/fhphotos/CIRD-72K6-H9_DET_3.jpg?width=200&height=200&mode=crop',large:'/s3/fhphotos/CIRD-72K6-H9_DET_3.jpg?width=600&height=600&mode=max',extraLarge:'/s3/fhphotos/CIRD-72K6-H9_DET_3.jpg?width=1000&height=1000&mode=max',full:'http://fhphotos.s3-website-us-east-1.amazonaws.com/CIRD-72K6-H9_DET_3.jpg'}],priceHtml:'$290.00',itemNumber:'CIRD-72K6-H9',name:'Brooks Lounge Chair-Stonewsh Drk Green',availableForImmediateShipment:true,isNew:false,isCloseout:false}],activeItemNumber:'CIRD-72K5-G6H6',priceDescription:'Wholesale Price'} }"></div>
的代碼?