borrow from great pyoutube
--------
Requirements:
* Python 2.7 or higher
* Install the Google API's Client Library for python (https://developers.google.com/api-client-library/python/start/installation)
* A registered application with google (https://developers.google.com/youtube/registering_an_application)
* A populated client_secret.json file in the directory you will be uploading the file from.
To install::
>>> pip install myyoutube
Sample usage::
>>>from myyoutube import uploader
>>>uploader.upload("File.mp4", title="Video Title", description="Video Description", tags=["video", "tags"], categoryId="20",privacy_status="Public")
Returns a dictionary response containing information about the uploaded video.
This function is of the form uploader.upload(file,**kwargs).
Only the file parameter is required for the upload to occur, as all other parameters have defaults which will be used should the argument not be passed, however it is recommended to pass the arguments in order to upload an attractive youtube video.
List of optional arguments and their uses:
* title: string, becomes the title of the youtube video.
* description: string, becomes the description of the youtube video.
* tags: list of strings, becomes the keyword tags of the youtube video.
* categoryId: string or an int, the numerical category id that categorizes the youtube video accordingly. These category ids can be obtained from the youtube web API via the link https://www.googleapis.com/youtube/v3/videoCategories?part=snippet®ionCode={two-character-region}&key={YOUR_API_KEY}. You will need to enable a browser API key as part of your project to discover different categoryId's.
* privacy_status: string, must be one of "public", "unlisted", or "private". Defaults to "public".
--------
Requirements:
* Python 2.7 or higher
* Install the Google API's Client Library for python (https://developers.google.com/api-client-library/python/start/installation)
* A registered application with google (https://developers.google.com/youtube/registering_an_application)
* A populated client_secret.json file in the directory you will be uploading the file from.
To install::
>>> pip install myyoutube
Sample usage::
>>>from myyoutube import uploader
>>>uploader.upload("File.mp4", title="Video Title", description="Video Description", tags=["video", "tags"], categoryId="20",privacy_status="Public")
Returns a dictionary response containing information about the uploaded video.
This function is of the form uploader.upload(file,**kwargs).
Only the file parameter is required for the upload to occur, as all other parameters have defaults which will be used should the argument not be passed, however it is recommended to pass the arguments in order to upload an attractive youtube video.
List of optional arguments and their uses:
* title: string, becomes the title of the youtube video.
* description: string, becomes the description of the youtube video.
* tags: list of strings, becomes the keyword tags of the youtube video.
* categoryId: string or an int, the numerical category id that categorizes the youtube video accordingly. These category ids can be obtained from the youtube web API via the link https://www.googleapis.com/youtube/v3/videoCategories?part=snippet®ionCode={two-character-region}&key={YOUR_API_KEY}. You will need to enable a browser API key as part of your project to discover different categoryId's.
* privacy_status: string, must be one of "public", "unlisted", or "private". Defaults to "public".
Metadata
Release files for myyoutube 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myyoutube-0.4.tar.gz | 27.1 kB | Details |
Release files / myyoutube-0.4.tar.gz
| Download URL | myyoutube-0.4.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a30cc64a1c14a963a92e39afafbddeadd6d49451a6ec44a5581b7510c31cfa
|
|
BLAKE2b-256 checksum How to use checksums |
5fb546a3bea8b77ce4666c301d8de086aaf61f1e35cdb875292d1b996645aaca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |