我如何在Google App Engine上获取超过1MB的内容? [英] How can I fetch() more than 1MB on Google App Engine?

查看:95
本文介绍了我如何在Google App Engine上获取超过1MB的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google App Engine会限制 urlfetch.fetch() 1MB 。是否有任何解决方法(切换到付费版本可能)?

Google App Engine limits urlfetch.fetch() responses to 1MB. Is there any workaround of this (switching to paid version maybe)?

我使用Python,如果可以提供一个很好的示例。

I'm using Python and if it's possible to provide an example that would be great.

推荐答案

使用全新的 SDK 1.4.0 可以下载32MByte; 请记住,尽管对于请求处理程序来说,截止时间最多可以达到60秒,对于任务队列和cron作业处理程序来说,截止时间最长可以达到10秒。 p>

With the brand new SDK 1.4.0 you can download 32MByte; keep in mind that you still have the 10 seconds Deadline limit though ;-) . deadline can be up to a maximum of 60 seconds for request handlers and 10 minutes for tasks queue and cron job handlers.


URLFetch允许的响应大小增加了
,高达32 MB。请求
尺寸仍然限制为1 MB。

URLFetch allowed response size has been increased, up to 32 MB. Request size is still limited to 1 MB.

这篇关于我如何在Google App Engine上获取超过1MB的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆