Skip to content
New issue

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

examples add YouTube Video Analysis Example using Gemini API #341

Closed
wants to merge 1 commit into from

Conversation

jh941213
Copy link

#340
This example demonstrates how to download and analyze YouTube videos using the Gemini API. The main features include:

  1. YouTube video download functionality
  2. Video content analysis using Gemini API
  3. Structured JSON output of analysis results
  4. Similar video search capability

The code includes the following classes and methods:

  • GeminiVideoAnalyzer class
  • download_video(): Downloads YouTube videos
  • analyze_video(): Analyzes videos using Gemini API
  • analyze_youtube_video(): Executes the complete analysis process

What problem are you trying to solve with this feature?

  1. Need for automated analysis of YouTube video content
  2. Extraction of metadata such as video categories, themes, target audience
  3. Similar content search and recommendations
  4. Automation of large-scale video data processing

Any other information you'd like to share?

  • Requires Python 3.11 or higher
  • Required libraries: google-generativeai, yt-dlp, langchain
  • Gemini API key required
  • Environment variables setup needed (.env file)
  • Example code provided in Jupyter Notebook format

Copy link

google-cla bot commented Dec 12, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:examples Issues/PR referencing examples folder labels Dec 12, 2024
@Giom-V
Copy link
Collaborator

Giom-V commented Dec 13, 2024

I'm sorry but we can't host your example as it seems in violation of Youtube's terms of service.

@Giom-V Giom-V closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:examples Issues/PR referencing examples folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants