Open a file from urlfetch in GAE
问题 I'm trying to open a file in GAE that was retrieved using urlfetch() . Here's what I have so far: from google.appengine.api import urlfetch result = urlfetch.fetch('http://example.com/test.txt') data = result.content ## f = open(...) <- what goes in here? This might seem strange but there's a very similar function in the BlobStore that can write data to a blobfile: f = files.blobstore.create(mime_type='txt', _blobinfo_uploaded_filename='test') with files.open(f, 'a') as data: data.write