我正在废弃此URL中的一些数据
我想提取描述html div内容
这是我的代码
response.xpath("//*[@id='tab-description']/p").extract()
但是它返回额外普通数据。
我希望输出应该像这样
<p> <strong>Brand Name: </strong>NoEnName_Null <br> <strong>Material: </strong>Cloth <br> <strong>Warning: </strong>2+ <br> <strong>Function: </strong>Cooperation/Interpersonal Relations Developing <br> <strong>Dimensions: </strong>2/3/4/5/6 M <br> <strong>Design: </strong>Other <br> <strong>Age Range: </strong>> 3 years old <br> <strong>Sports: </strong>Gymnastics <br> <strong>Type: </strong>Other <br> <strong>Gender: </strong>Unisex <br> <strong>Diameter: </strong>2/3/4/5/6 M <br> <strong>Material: </strong>210T Polyester fabric, 450mm water proof <br> <strong>Color: </strong>as the photo <br> <strong>handle number: </strong>8-28 </p>
1条答案
按热度按时间bejyjqdl1#