I need to get a video from a URL, for example:
https://zencoder-temp-storage-us-east-1.s3.amazonaws.com/o/20130722/5aacb76fc3fd47715c0329d1235dcccf/4fc612e92131e159abc761f7d54d86b5.mp4?AWSAccessKeyId=AKIAI456JQ76GBU7FECA&Signature=AGgZb1eMr105RXcoQFp8yFFTfFg%3D&Expires=1374614893
and then use Google App Engine to save it to the blobstore (or possibly Google Cloud Storage if the blobstore can't download straight from a URL) is there a simple way to do this? I already have it set up so that I can get a user to upload a video but I am not sure about doing it this way. Is the URLFetch Library what I'm looking for?
Would it be something like:
class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
#I'm just not sure what to do here, how I can get that 'file' from a URL
upload_files = self.get_uploads('file')
blob_info = upload_files[0]
video = Video(
title = "some title",
video_ref = blob_info.key())
video.put()