Giter Site home page Giter Site logo

matianxing1992 / python-youtube-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srcecde/python-youtube-api

0.0 0.0 0.0 22 KB

A basic Python YouTube v3 API to fetch data from YouTube using public API-Key without OAuth

License: GNU General Public License v3.0

Python 100.00%

python-youtube-api's Introduction

Python YouTube API

A basic Python YouTube v3 API to fetch data from YouTube using public API-Key without OAuth

It fetch comments, perform search and return videos, channels and playlist in categorized form.

You are required to get the API key from Google API console in order to use this script

How to use

Pass --c after file name for calling Video Comment function Pass --s after file name for calling Search by Keyword Pass --sc after file name for calling Search videos by YouTube ChannelId
It is mandatory to pass any of the above argument after file name

Video Comments

  • python youtube_api_cmd.py --max --videourl --key
  • --max parameter for defining the maximum result you want (maxlimit = 100, default=20)
  • --videourl parameter for defining the youtube URL
  • --key parameter for defining your developer API key
  • --videourl and --key parameter is mandatory. --max parameter is optional

Search by Keyword

  • python youtube_api_cmd.py --search --max --key
  • --max parameter for defining the maximum result you want (maxlimit = 100, default=20)
  • --search parameter for giving the keyword
  • --r parameter for defining region (Country) For ex. --r=IN (Parameter should be a country code)
  • --key parameter for defining your developer API key Mandatory
  • It will return Videos, Channel and Playlist in the respective category

Search Videos by YouTube ChannelId

  • python youtube_api_cmd.py --channelid --max --key
  • --max parameter for defining the maximum result you want (maxlimit = 100, default=20)
  • --channelid parameter for defining channel id Mandatory
  • --key parameter for defining your developer API key Mandatory
  • It will list of Videos from the defined YouTube ChannelId

YouTube API v3

python-youtube-api's People

Contributors

srcecde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.