【发布时间】:2021-01-31 09:01:32
【问题描述】:
此 Shopify 抓取工具正在返回带有正文的 HTML 元素,因为它支持 HTML 格式。如果没有 HTML 元素,我如何将值返回到 CSV?
'body': str(product['body_html'])
返回到 CSV 的示例:
<p><span>These seasonal and spiced cookies will warm any Fall day. Gluten-free and allergy-friendly, enjoy sweet and�soft-baked cookies full of everything you want in a snack and nothing you don't.�</span></p>
【问题讨论】:
标签: python html csv web-scraping shopify