Skip to content

opentube.video ​

Classes ​

Video ​

opentube.video.Video

Property Index ​

Properties ​

description ​

Returns the description of the video.

Returns ​

  • Type: str
    • Description of the video.

duration_ms ​

Returns the approximate duration of the video in milliseconds.

Returns ​

  • Type: int
    • Duration of the video.

genre ​

Returns the genre of the video.

Returns ​

  • Type: str | None
    • Genre of the video.

keywords ​

Returns the keywords of the video.

Returns ​

  • Type: List[str] | None
    • Keywords of the video.

likes ​

Returns the likes count of the video.

Returns ​

  • Type: str | None
    • Likes count of the video.

livestream ​

Returns whether the video is a livestream or not.

Returns ​

  • Type: bool
    • True if the video is a livestream, False otherwise.

owner ​

Returns the details such as, id, title, avatars, subscribers of the owner of the video.

Returns ​

  • Type: Dict[str, Any]
    • Details of the owner.

published ​

Returns the date of publication of the video.

Returns ​

  • Type: str
    • Date of publication of the video.

thumbnail ​

Returns the thumbnail of the video.

Returns ​

  • Type: str
    • Thumbnail of the video.

title ​

Returns the title of the video.

Returns ​

  • Type: str
    • Title of the video.

url ​

Returns the url of the video.

Returns ​

  • Type: str
    • Url of the video.

views ​

Returns the view count of the video.

Returns ​

  • Type: str
    • View count of the video.

watermark ​

Returns the watermark image url of the video.

Returns ​

  • Type: str | None
    • Watermark of the video.