We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
### Example Code google_api_client = GoogleApiClient(credentials_path=Path("D:\Project_Multimedika\automation_youtube\client_secret.json")) def load_docs(url): try: url = str(url) # loader = YoutubeLoader.from_youtube_url( # youtube_url=url, # add_video_info=False, # language=["id"], # translation = "id" # ) # documents = loader.load() # Use a Channel youtube_loader_channel = GoogleApiYoutubeLoader( google_api_client=google_api_client, channel_name="Dokter Post", captions_language="id", ) # Use Youtube Ids youtube_loader_ids = GoogleApiYoutubeLoader( google_api_client=google_api_client, video_ids=[url], add_video_info=True ) # returns a list of Documents documents = youtube_loader_channel.load() print("documents : ", documents) if not documents: # Equivalent to checking if documents is an empty list return APIResponse(success=False, message="Tidak bisa menangkap subtitle", data={"summary": "tidak ada summary"}) return documents except Exception as e: return APIResponse(success=False, message=f"error : {e}", data={"summary": "terdapat error"})
I have updated langchain-community, but it is still error. The error is similar with [](#27432)
langchain-community == 0.3.14 fastapi == 0.115.6 openai == 1.59.3 uvicorn == 0.34.0 youtube-transcript-api == 0.6.3 pytube == 15.0.0 python-dotenv == 1.0.1 langchain-openai == 0.2.14 langchain-text-splitters == 0.3.4 oauthlib==3.2.2 google-api-core==2.24.0 google-api-python-client==2.158.0 google-auth==2.37.0 google-auth-httplib2==0.2.0 google-auth-oauthlib==1.2.1 googleapis-common-protos==1.66.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checked other resources
Error Message and Stack Trace (if applicable)
Description
I have updated langchain-community, but it is still error. The error is similar with [](#27432)
System Info
langchain-community == 0.3.14
fastapi == 0.115.6
openai == 1.59.3
uvicorn == 0.34.0
youtube-transcript-api == 0.6.3
pytube == 15.0.0
python-dotenv == 1.0.1
langchain-openai == 0.2.14
langchain-text-splitters == 0.3.4
oauthlib==3.2.2
google-api-core==2.24.0
google-api-python-client==2.158.0
google-auth==2.37.0
google-auth-httplib2==0.2.0
google-auth-oauthlib==1.2.1
googleapis-common-protos==1.66.0
The text was updated successfully, but these errors were encountered: