我已经用selenium python编写了一个脚本,我正处于一个需要对http://localhost:0000/v1/s3status进行get调用的位置,并且输出将如所附的图片所示。Attached output of get call
datasources= requests.get("http://localhost:0000/v1/s3status")
我正在寻找一个只需要特定值的脚本输出的解决方案,stages:{},validated:{},failed:{}
所以python脚本的输出应该是这样的:
Datasources of Staged :{Whatever the result will be inside}
Datasources of Failed :{Whatever the result will be inside}
Datasouces of Validated :{Whatever the result will be inside}
首先,您需要将请求转换为json
相关问题 更多 >
编程相关推荐