【发布时间】:2021-12-16 06:37:10
【问题描述】:
代码行如下:
<input type="hidden" id="data_mentalidad_web_35084" value='[{"name":"Extensor Cable Riser PEC 300 PCI-E x16 ","id":"35084","price":"29990","brand":"Deepcool \u00ae ","category":"Tarjetas Gr\u00e1ficas","variant":"","quantity":1,"position":1}]'>
我只想要以粗体标记的内容:
<input type="hidden" id="data_mentalidad_web_35084" value='[{"name":"***Extensor Cable Riser PEC 300 PCI-E x16*** ","id":"35084","price":"***29990***","brand":"Deepcool \u00ae ","category":"***Tarjetas Gr\u00e1ficas***","variant":"","quantity":***1***,"position":1}]'>
【问题讨论】:
-
"quantity":***1***是无效的语法。要在你需要一根绳子的人周围装星星:f"***{1}***"
标签: python selenium web-scraping xpath