我的数据是在这里找到:https://paste2.org/72LmCn2P
怎么可能从这种JSON中提取数据呢?在
我可以从Firefox的视图中看到,Firefox可以将这个列表转换为一个工作的JSON格式。代码段:
with urllib.request.urlopen("url") as url:
soup = BeautifulSoup(url, "html.parser")
output_file.write(str(json.loads(soup.get_text())))
如何将此类数据转换为有用的转换数据?在
Tags:
它看起来像是一个JSON响应e—这意味着您不需要HTML解析器来解析它—直接用^{} 加载它:
相关问题 更多 >
编程相关推荐