我正在寻找一个将运行 URL 的 python 程序。很简单,它只需要使用提供的凭据运行应用程序生成的 URL 即可访问应用程序。我将安排每晚运行 python 脚本。
我有一个生成 URL 的应用程序。如果我运行该 URL,它将生成 JSON 文件。
我正在尝试预先缓存应用程序的输出,所以我想每天早上运行 URL。
以下是资料:
USERNAME = "test"
PASSWORD = "test5"
HOST = 'appl.xyz.net'
PORT = 8080
JSON:
{
"queryInfo":{
"totalRows":"3"
},
"resultset":[
[
4215,
null,
"AAA"
],
[
4215,
null,
"BBB"
]
],
"metadata":[
{
"colIndex":0,
"colType":"Numeric",
"colName":"id"
},
{
"colIndex":1,
"colType":"String",
"colName":"Name"
},
{
"colIndex":2,
"colType":"String",
"colName":"City"
}
]
}
谢谢