如何在python中访问请求模块中的自定义字段?

如何在python中访问请求模块中的自定义字段?,python,python-requests,Python,Python Requests,当我试图使用requests模块在WordPress上发布时,只会发布标题、内容和内容。但其他自定义字段(在说明中输入)不会发布 cool = { 'title': 'Kakashi Hatake', 'content': 'It might be the best way to save someone in distress.', 'type' : 'post', 'requerimientos' : '4.1 and up', 'descripcion': { "desc

当我试图使用requests模块在WordPress上发布时,只会发布标题、内容和内容。但其他自定义字段(在说明中输入)不会发布

cool = {
'title': 'Kakashi Hatake',
'content': 'It might be the best way to save someone in distress.',
'type' : 'post',
'requerimientos' : '4.1 and up',
'descripcion': {
    "descripcion": "Checking",
    "version": "5.3.1",
    "tamano": "67M",
    "fecha_actualizacion": "April 13, 2021",
    "requerimientos": "4.4 and up",
    "consiguelo": "#",
    "novedades": "S"
},
    'status': 'publish'
}
r = requests.post(url + '/posts', headers=header, data=cool)
print(r)

我会检查一些字段的拼写,以确保它们符合wordpress的预期。例如,
description
可能必须是
description
@scotty3785我检查了它。事实上,它就是这样储存的。它们是用西班牙语命名的。