Skip to main content

pyoutube

Requirements:

To install:

>>> pip install pyoutube

Sample usage:

>>>import pyoutube
>>>pyoutube.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&regionCode={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”.

Important Changes

As of v0.5, importing is changed and the upload method has been moved under the main module. Functionally the .upload() method is the same.

Release files for pyoutube 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyoutube 0.5
File Size Uploaded
pyoutube-0.5.zip 8.0 kB Details

Release files / pyoutube-0.5.zip

Download URL pyoutube-0.5.zip
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab01c5957d3b89b035b615e732e86c23ca6ac136b18cb17783724d014b41d650
BLAKE2b-256 checksum
How to use checksums
9e7ade938eca987810c65ce846b88c9c68d454e1daaa714e1817b4d18980b9dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

0.3

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page