youtube: Upload video to YouTube via YouTube API
Upload a video to YouTube via YouTube API. The aim of this program is to simplify uploads of related videos.
First you must have the
curl executable installed.
In order to use the
you need a YouTube account and an additional developer account.
From the developer account you get a keyfile.
If you want to upload videos you first have to login to YouTube.
You can do this with
export YOUTUBEUSER=your_youtube_login youtube-auth
As a result of this call you get an authentication token.
Write this authentication token into the
YOUTUBEAUTH environment variable.
It is queried by
For every upload you have to pass the developer keyfile,
an XML file containing meta data for the video and the video file.
The XML file must be encoded with UTF-8.
I found it very useful to generate the XML files
from an XML template file and a CSV table
cvsreplace command from the
I have included the example file
that you can use with a CSV file
with the columns
The package is now deprecated.
It only supports authentication via
which was disabled by Google somewhen in 2017.
OAuth2.0 is pretty complicated.
Better use a program that calls one of the official Google APIs like:
- youtube-0.2.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
|Versions [RSS]||0.1, 0.2, 0.2.0.1, 0.2.1, 0.2.1.1|
|Dependencies||base (>=4.2 && <5), bytestring (>=0.9 && <0.13), process (>=1.0 && <1.7), utility-ht (>=0.0.8 && <0.1) [details]|
|Revised||Revision 2 made by HenningThielemann at 2023-07-17T10:58:54Z|
|Source repo||this: darcs get https://hub.darcs.net/thielema/youtube/ --tag 0.2.1.1
head: darcs get https://hub.darcs.net/thielema/youtube/
|Uploaded||by HenningThielemann at 2017-07-28T19:31:27Z|
|Distributions||LTSHaskell:0.2.1.1, NixOS:0.2.1.1, Stackage:0.2.1.1|
|Reverse Dependencies||1 direct, 0 indirect [details]|
|Downloads||4146 total (10 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
|Status||Docs not available [build log]
Last success reported on 2017-07-28 [all 2 reports]