如何从Python的MailChimp批处理操作中提取响应URL?
我正在使用批处理操作通过MailChimp Marketing API要求数据。我会收到一个response_body_url
,该一旦单击,在本地下载了GZPICPENT文件。
请求响应响应的请求_body_url返回一个json文件的tar档案。
但是我想在python上提取相同的内容,然后将其加载为JSON数组。 MailChimp分享了有关该指南的指南,但是他们使用了函数process_batch_archive
,但未定义此功能是什么或其工作方式。
这是指南的链接:链接 谁能帮助我取得预期的结果?谢谢。
I am requesting data via Mailchimp Marketing API using Batch Operations. I receive a response_body_url
which once clicked, downloads gzipped files locally.
A GET request to the response_body_url returns a gzipped tar archive of JSON files.
But I would want to extract the same on Python and load it as a JSON array.
Mailchimp has shared a guide about the same, but they have used a function process_batch_archive
and have not defined what this function is or how it works.
Here is the link to the guide: Link
Can anyone help me achieve the expected result? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
返回dict,因为GZPICTED存档通常包含几个文件。
Returning a dict, since the gzipped archive typically contains few files.