提取json内容,提取json内容里的网址不成功,如何设置提取路径?

使用问题 · 1716 次浏览
Melody_Young 创建于 2020-07-28 18:03

动作已分享:https://getquicker.net/Sharedaction?code=f7681c45-3c86-4da5-b595-08d83289803e

 

需求:提取coupon_click_url的网址,打开网址

 

根据帮助文档:提取JSON内容,参考此前他人提问

分别在路径填入coupon_click_url,[0].coupon_click_url,tbk_privilege_get_response[0].coupon_click_url

 

调试结果,啥也没提取到:

 

json内容示例:

{
    "tbk_privilege_get_response": {
        "result": {
            "data": {
                "category_id": "50008090",
                "coupon_click_url": "https://uland.taobao.com/coupon/edetail?e=r17urErUaMEE%2BdAb1JoOOk%2Fiyd3eXjkjo7jrIA5YHMULh7lUCNbjyzTIfc747uoNw0cTV489ODyHEMvCyCGxtpQ5wfGz%2Fu%2BN%2BOBX2m%2BmAFUFapBA7XjoiCZ6Y%2FpkHtT5QS0Flu%2FfbSovkBQlP112cACbVeUhNk1ammFSbvEOf1tSEJcUQTcJcVe6m6334vrkuUT8%2BVWDu6I%3D&traceId=0b090e0215959296951103776eb2b8&union_lens=lensId:TAPI@1595929695@0b57b31e_0e0c_17394d29396_3a82@01&xId=5xyRjKyEt88NNpcezuyVPuawAbyEC8SeJemtjnHVtmXUJby3m0V7NjZjqgyGI54QLdyIbXzIUKYWoxU5U1v0MfO9bCxZ0vAHYZWyYMajcjCm",
                "coupon_end_time": "2020-08-01 23:59:59",
                "coupon_info": "满9元减3元",
                "coupon_amount": "3",
                "coupon_startfee": "9",
                "coupon_remain_count": "97488",
                "coupon_start_time": "2020-07-25 00:00:00",
                "coupon_total_count": "100000",
                "coupon_type": "3",
                "item_id": "601523720480",
                "item_url": "https://s.click.taobao.com/t?e=m%3D2%26s%3DaUqwBWPXqZZw4vFB6t2Z2ueEDrYVVa64K7Vc7tFgwiHLWlSKdGSYDux2uA3QPqPV5x%2BIUlGKNpWjYmM1mnw3o497I8mW%2FOtOKtpUKYs1iSjmaO2YKIBmzLkw5BDxJB1xzypSFFPLvUrNEPXytV9ALoS4zvCRUrqum1Z6iJYXe4uDrBUqiauIYU3O4wtQ3K90XH5t%2B8W%2BDyUrn6lAxrGjkNB3mj4IOOKpmc0BiXVizKNxKmPmpIKZsA%3D%3D&union_lens=lensId:TAPI@1595929695@0b57b31e_0e0c_17394d29396_3a82@01&xId=5xyRjKyEt88NNpcezuyVPuawAbyEC8SeJemtjnHVtmXUJby3m0V7NjZjqgyGI54QLdyIbXzIUKYWoxU5U1v0MfO9bCxZ0vAHYZWyYMajcjCm",
                "max_commission_rate": "20.00",
                "min_commission_rate": "20.00",
                "s_coupon_id": "",
                "s_coupon_amount": "",
                "s_coupon_startfee": "",
                "s_coupon_start_time": "",
                "s_coupon_end_time": ""
            }
        },
        "request_id": "xf15hzhzjd0z"
    }
}

希望指点迷津~~~


回复内容
CL 2020-07-28 18:42
#1
tbk_privilege_get_response["result"]["data"]["item_url"]

试试

Melody_Young 2020-07-29 09:30 :

非常感谢,这个试了没有成功,楼下提供了正确路径,已成功。

zetalpha 2020-07-28 20:36
#2

tbk_privilege_get_response.result.data.coupon_click_url

tbk_privilege_get_response.result.data.item_url

zetalpha 最后更新于 2020-07-28 20:38
Melody_Young 2020-07-29 09:39 :

非常感谢,用这个路径已成功!感谢对小白问题的解答~~~

回复主贴