使用python gdata通过URL将视频上传到youtube [英] Upload video to youtube via URL with python gdata

查看:62
本文介绍了使用python gdata通过URL将视频上传到youtube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用远程URL(不是从本地计算机)在youtube上上传视频.我正在为此使用Youtube API和python gdata工具.

Is it possible to upload a video on youtube with a remote URL (not from the local machine). I am using Youtube API and python gdata tools for this.

我在运行脚本的服务器上没有视频,我想将它们直接从远程URL上传到youtube,而不是先下载它们...您知道是否可以这样做?

I don't have the videos on the server where the script will run, and I want to upload them directly to youtube from a remote URL, instead of downloading them first... Do you know if this possible?

推荐答案

简短答案:不可能.

长答案:视频只是数据文件.因此,问题就变成了:计算机A上的程序是否可以告诉服务器B使用标准的Internet通信将文件发送到服务器C? YouTube仅接受上传视频的POST请求,因此服务器B需要发送此请求.而且,您不能仅通过URL告诉服务器B做到这一点.

Long answer: Videos are just data files. So the question becomes: is it possible for a program on Computer A to tell Server B to send a file to Server C using standard internet communication? YouTube only accepts POST requests for uploading videos, so Server B would need to send this request. And you can't tell Server B to do this with just a URL.

这篇关于使用python gdata通过URL将视频上传到youtube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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