import json import requests import time url = "http://localhost:6060/articleRank" with open("body.json") as f: data = json.loads(f.read()) body = json.loads(data['data']) body['strategy'] = "ArticleRankV2" body['publishNum'] = 8 body['accountName'] = "指尖奇文" headers = {"Content-Type": "application/json"} a = time.time() response = requests.post(url=url, headers=headers, json=body) b = time.time() print(json.dumps(response.json(), ensure_ascii=False, indent=4)) print(b - a) for res in response.json()['data']['rank_list']: print(res['title'], res['producePlanName'], res['score'], res['crawlerViewCount'])