How can I fetch() more than 1MB on Google App Engine?

后端 未结 2 1700
夕颜
夕颜 2021-01-19 13:06

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

I\'m using Python and if

2条回答
  •  终归单人心
    2021-01-19 14:06

    No, you cannot fetch more than 1MB per URL fetch (even if you enable billing). However, you might be able to fetch portions of the target URL using the Range header and then combine these pieces. This might even be faster since you could fetch each 1MB chunk simultaneously (using asynchronous fetches).

提交回复
热议问题