google.youtube#

class platypush.plugins.google.youtube.GoogleYoutubePlugin(*args, **kwargs)[source]#

Bases: GooglePlugin

YouTube plugin.

Requires:

  • google-api-python-client (pip install google-api-python-client)

  • oauth2client (pip install oauth2client)

__init__(*args, **kwargs)[source]#

Initialized the Google plugin with the required scopes.

Parameters:

scopes (list) – List of required scopes

search(parts=None, query='', types=None, max_results=25, **kwargs)[source]#

Search for YouTube content.

Parameters:
Returns:

A list of YouTube resources. See the Getting started - Resource.