Python Requests.Json()解码不正确

Python Requests.Json()解码不正确,python,Python,我试图从中获取并解码JSON数据。如果我在搜索引擎中键入它生成的链接,它返回的JSON数据是: { "id": 5214199, "name": "Fruso", "description": "\"Blended with Delight\"\n\nEstablished October 2019, Fruso's main objective is to bring somethin

我试图从中获取并解码JSON数据。如果我在搜索引擎中键入它生成的链接,它返回的JSON数据是:

{
"id": 5214199,
"name": "Fruso",
"description": "\"Blended with Delight\"\n\nEstablished October 2019, Fruso's main objective is to bring something exclusive and breathtaking to Roblox. With modern and distinctive technology, Fruso will give customers a remarkable experience. Anyone can join Fruso's sumptuous community to help Fruso grow to become one of the finest in the juice industry. \n\nFruso's social media links are located on the \"Social Links\" tab.",
"owner": {
    "buildersClubMembershipType": "None",
    "userId": 581028621,
    "username": "Curtracus",
    "displayName": "Curtracus"
},
"shout": {
    "body": "If you’re enjoying your time here, why not invite your friends? You can join Fruso’s Community Support Server to become the first to get notified when something new happens!",
    "poster": {
        "buildersClubMembershipType": "None",
        "userId": 581028621,
        "username": "Curtracus",
        "displayName": "Curtracus"
    },
    "created": "2020-07-08T12:17:33.607Z",
    "updated": "2020-09-09T06:24:12.66Z"
},
"memberCount": 30,
"isBuildersClubOnly": false,
"publicEntryAllowed": true
}
但是,如果我尝试用python对其进行解码,我会得到以下结果:

{
"id": 5214199,
"name": "Fruso",
"description": "\"Blended with Delight\"\n\nEstablished October 2019, Fruso's main objective is to bring something exclusive and breathtaking to Roblox. With modern and distinctive technology, Fruso will give customers a remarkable experience. Anyone can join Fruso's sumptuous community to help Fruso grow to become one of the finest in the juice industry. \n\nFruso's social media links are located on the \"Social Links\" tab.",
"owner": {
    "buildersClubMembershipType": "None",
    "userId": 581028621,
    "username": "Curtracus",
    "displayName": "Curtracus"
},
"shout": None,
"memberCount": 30,
"isBuildersClubOnly": False,
"publicEntryAllowed": True
}
我的python代码中处理这一点的部分是:

data = requests.get('https://groups.roblox.com/v1/groups/5214199').json()
time.sleep(5)
body = data['shout']['body']
username = data['shout']['poster']['username']

我用另一个Roblox GroupId尝试了这个(更改'https://groups.roblox.com/v1/groups/5214199“到”https://groups.roblox.com/v1/groups/3326850"""""""""""""""的"三个。有人能帮我吗?

Roblox团队在他们的设置中不允许非成员查看shout。通过更新该设置进行修复。

您能否更具体地说明“在我的搜索引擎中键入它生成的链接”的含义?您显示的Python输出与我在浏览器中获得的完全相同,如果您通过另一种方法获得更多数据,我必须假设URL在某种程度上有所不同。可能它以前存在,但现在,在json中URL返回,“shout”是
null
。我不认为可变因素/片状是requests.json()解码,这是网站正在返回的内容。通过a)使用Telerik Fiddler等追踪流入/流出应用程序的消息,以及b)将原始接收数据记录到文件以及您所说的错误解码数据来证明这一点。