我想使用 beautifulsoup 和 python 从变量元返回“id”值。这可能吗?此外,我不知道如何找到包含元变量的特定“脚本”标签,因为它没有唯一标识符,以及网站上的许多其他“脚本”标签。我也使用硒,所以我可以理解任何答案。
<script>
var meta = "variants":[{"id":12443604615241,"price":14000},
{"id":12443604648009,"price":14000}]
</script>
Run Code Online (Sandbox Code Playgroud)