使用python gdata通过URL将视频上传到youtube

编程入门 行业动态 更新时间:2024-10-26 23:31:05
本文介绍了使用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

本文发布于:2023-11-17 07:41:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视频   gdata   python   youtube   URL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!