Skip to main content

Faster YouTube Summary is a tool designed to quickly generate detailed summaries of YouTube videos using Groq API

Project description

Faster YouTube Summary

Faster YouTube Summary is a powerful tool designed to quickly generate detailed summaries of YouTube videos using the Groq API. This tool can deliver a comprehensive summary of a YouTube video in just 2 seconds (Provided video has native captions.)

Installation

To install the necessary dependencies, run the following command:

pip install fasteryoutubesummary

Setup

Faster YouTube Summary leverages the Groq API to provide fast and accurate responses from large language models (LLMs). To use this tool, you'll need a Groq API key.

  1. Obtain your API key from the Groq Console:
    Get your Groq API key

  2. Once you have your API key, set it as an environment variable:

export GROQ_API_KEY="YOUR_API_KEY"

Basic Usage

After setup, you can use Faster YouTube Summary in your project with the following code:

from fasteryoutubesummary import get_video_summary
import os  

url = input("Enter the URL of the YouTube video: ")
api_key = os.environ.get("GROQ_API_KEY")
summary = get_video_summary(url, api_key, return_summary_only=False)
  
print(summary)
  • url and api_key are required parameters.
  • To receive the summary as plain text only, set return_summary_only to True.
from fasteryoutubesummary import get_video_summary
import os  

url = input("Enter the URL of the YouTube video: ")
api_key = os.environ.get("GROQ_API_KEY")
summary = get_video_summary(url, api_key, return_summary_only=True)
  
print(summary)

FASTER mode

Although the default model is fast enough to generate summaries, we've provided a way to make it even faster:

from fasteryoutubesummary import get_video_summary
import os  

url = input("Enter the URL of the YouTube video: ")
api_key = os.environ.get("GROQ_API_KEY")
summary = get_video_summary(url, api_key, mode='FASTER')
  
print(summary)

In this mode, the model will be set to llama3.2-1b, providing faster responses, but summary quality may be slightly reduced.

Multilingual Output

Thanks to the llama 3.2 family, we can now handle input in different languages, and of course, output language, you're in control:

from fasteryoutubesummary import get_video_summary
import os  

url = input("Enter the URL of the YouTube video: ")
api_key = os.environ.get("GROQ_API_KEY")
summary = get_video_summary(url, api_key, language='JAPANESE')
  
print(summary)

Choose the desired language using the language parameter.

Currently supported languages:

Language Language Code
English ENGLISH
Spanish SPANISH
German GERMAN
French FRENCH
Italian ITALIAN
Japanese JAPANESE

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

fasteryoutubesummary-2.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

fasteryoutubesummary-2.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file fasteryoutubesummary-2.1.0.tar.gz.

File metadata

  • Download URL: fasteryoutubesummary-2.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for fasteryoutubesummary-2.1.0.tar.gz
Algorithm Hash digest
SHA256 79c82270b4e6c51056d57557aaf1a7a1cd41d98619fc13d6ab2718d601906c3e
MD5 73845d36a340a880066ba135b96d3ba9
BLAKE2b-256 eaedd3641e8202a608c75f1e9df53ac5fc554e2a1e9a38945c8d9a7c8945cc98

See more details on using hashes here.

File details

Details for the file fasteryoutubesummary-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fasteryoutubesummary-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c031cd32237150e1d0997f4084617ee8a5bc404eeef95e84c4ed7f2c747681
MD5 6dead0954eeb1045bf0b91366481df2c
BLAKE2b-256 1632748f8fc9e0a311402ecd24615743cef35e6200d8332cd1061da6a3755b1a

See more details on using hashes here.

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