Skip to main content

A simple wrapper for YouTube Data API v3 written in Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytubedata-1.1.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file pytubedata-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytubedata-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pytubedata-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6d223a88cb70f62925be7ce27b0a729b80fa9766135c39b472e278777e869e
MD5 21df309dfd5e82ea2d9e6bbbdb3789d9
BLAKE2b-256 eff54efc94066fd0d4a3961dc59b51267a90e9a6cafd8e55a022086cb9fdda71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page