Skip to main content

this is a simple client for youtube data api v3

Project description

This is an youtube api v3 wrapper which is integrated in any python app basically in web app which recommend youtube videos ### A simple client for youtube data api v3

Demo

PyYtData demo

Prerequisites

Get the youtube data v3 api key from https://console.developers.google.com/apis/ Set environment variable API_KEY=’Your YoutubeDatav3 API key’ and also GOOGLE_APPLICATION_CREDENTIALS=’path/to/json/file’ Reference to set GOOGLE_APPLICATION_CREDENTIALS https://cloud.google.com/docs/authentication/getting-started

Installation

pip install pyytdata

using

import pyytdatav
# keyword is the query you want to search from
# youtube data api and maxlen is no. of video you want.

p=pyytdata.PyYtData(keyword,maxlen)

#function call for titles of video

output=p.get_titles()

#function to open the specific video in web browser

output=p.open_id(item_no)

General Info

Have a look at the example to get acquaint with the use cases.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Project details


Download files

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

Source Distribution

pyytdata-0.0.9.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

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