Skip to content

A simple wrapper for YouTube Data API written in Python

License

Notifications You must be signed in to change notification settings

professor91/pytubedata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytubedata

Pytubedata is a simple wrapper for YouTube Data API written in python

Installation

pip install pytubedata

Usage

This package requies a valid YT Data API Key. You can get one from Google Cloud Console.

Quickstart

  • Create a file in secret.yml in the project's root directory and save the YouTube Data API key in that file.

  • Getting the Client

    from Youtube import Client
    
    c= Client()

Documentation

  • Search for videos

      c.search(query="api")

    check out Youtube/client.py for other parameters

  • Get activities of a channel

      c.request("activity",id="channel_id")
  • Get details of a channel

      c.request("channel",id="channel_id")
  • Get sections of a channel

      c.request("channel_sections",id="channel_id")
  • Get section of a channel by id

      c.request("channel_section_by_id",id="section_id")
  • Get playlists of a channel

      c.request("playlists",id="channel_id")
  • Get playlist by id

      c.request("playlist_by_id",id="playlist_id")
  • Get videos of a playlist

      c.request("playlist_videos",id="playlist_id")
  • Get details of a video by id

      c.request("video_by_id",id="video_id")
  • Get comments on a video

      c.request("comments_on_video",id="video_id")
  • Get comment details by id

      c.request("comment_by_id",id="comment_id")
  • Get replies of a comment

      c.request("replies_to_comment",id="comment_id")

Contact

Mail: keshavandteam@gmail.com

About

A simple wrapper for YouTube Data API written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages