Note depending on your set up, the service_account_path needs to be set up. See here for more details.from langchain.document_loaders import GoogleApiClient, GoogleApiYoutubeLoader# Init the GoogleApiClientfrom pathlib import Pathgoogle_api_client = GoogleApiClient(credentials_path=Path("your_path_creds.json"))# Use a Channelyoutube_loader_channel = GoogleApiYoutubeLoader(    google_api_client=google_api_client,    channel_name="Reducible",    captions_language="en",)# Use Youtube Idsyoutube_loader_ids = GoogleApiYoutubeLoader(    google_api_client=google_api_client, video_ids=["TrdevFK_am4"], add_video_info=True)# returns a list of Documentsyoutube_loader_channel.load()PreviousYouTube audioNextDocument transformersAdd video infoAdd language preferencesYouTube loader from Google CloudPrerequisitesüßë Instructions for ingesting your Google Docs dataCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
YouTube is an online video sharing and social media platform created by Google.
YouTube is an online video sharing and social media platform created by Google. ->: Note depending on your set up, the service_account_path needs to be set up. See here for more details.from langchain.document_loaders import GoogleApiClient, GoogleApiYoutubeLoader# Init the GoogleApiClientfrom pathlib import Pathgoogle_api_client = GoogleApiClient(credentials_path=Path("your_path_creds.json"))# Use a Channelyoutube_loader_channel = GoogleApiYoutubeLoader(    google_api_client=google_api_client,    channel_name="Reducible",    captions_language="en",)# Use Youtube Idsyoutube_loader_ids = GoogleApiYoutubeLoader(    google_api_client=google_api_client, video_ids=["TrdevFK_am4"], add_video_info=True)# returns a list of Documentsyoutube_loader_channel.load()PreviousYouTube audioNextDocument transformersAdd video infoAdd language preferencesYouTube loader from Google CloudPrerequisitesüßë Instructions for ingesting your Google Docs dataCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.