如何从Python请求中提取值

2024-10-01 09:36:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用Python请求来搜索特定项。在

page = requests.get('https://utas.s2.fut.ea.com/ut/game/fifa16/transfermarket?maxb=900&start=0&type=player&maskedDefId=177604&num=16', headers=headers, cookies=cookies)
print page.json

上面的代码以json格式输出(见下文),我只想提取tradeId并将其打印到我的终端。在

^{pr2}$

Tags: httpscomgamejsongetpagerequestsheaders