""" @author: luojunhui """ import time import requests url = "http://localhost:8111/final_match" header = { "Content-Type": "application/json", } body = { "kimiTitle": "🔥96岁北大教授夫人选择断食离世,生前遗言震撼人心!😢", "traceId": "search-d2f0ec07-8d91-4440-a438-1d9e9bbb9941-1723033241", "videoObjList": [ { "coverPath": "long_articles/image/919ea8b6-399c-4117-90b1-9cbfa04655c4", "title": "漫话寿高多辱(下)陈司寇老师对待生死的达观态度值得老年人借鉴", "uid": "69637509", "videoPath": "long_articles/video/c6ed59d1-54b2-4e7f-9a09-0f2f40b28afa" }, { "coverPath": "long_articles/image/c067097b-cc1e-4773-9d5c-069503d96b89", "title": "96岁北大教授夫人绝食4天后离世,临终遗言引人深思", "uid": "69637509", "videoPath": "long_articles/video/e88d8334-b838-4b0e-ac25-258ca6f1d789" }, { "coverPath": "long_articles/image/b8b042e5-fac0-4a43-b869-8ec7f51d38b6", "title": "96岁北大教授夫人绝食4天后离世,临终遗言引人深思", "uid": "69637509", "videoPath": "long_articles/video/e2fd64c2-10d9-48f4-aed1-3cf26c7bc050" } ], "ghId": "gh_6d205db62f04", "miniType": 1 } b = time.time() response = requests.post(url=url, headers=header, json=body) a = time.time() print(a - b) print(response.json())