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.
-
Obtain your API key from the Groq Console:
Get your Groq API key -
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
toTrue
.
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.1-8b, providing faster responses, but summary quality may be slightly reduced.
Multilingual Output
Thanks to the llama3.1 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fasteryoutubesummary-1.1.2.tar.gz
.
File metadata
- Download URL: fasteryoutubesummary-1.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05a616ffb8d6374c3cbe196cd409f101067e6617998b53d9552405be36f1a0b2 |
|
MD5 | 6148924eafee37a27bfa1ec6f1179658 |
|
BLAKE2b-256 | c535100fa68d7534802096f64cf251d3f745d24f642b8a50291a3c5d97d9b78d |
File details
Details for the file fasteryoutubesummary-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: fasteryoutubesummary-1.1.2-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6532e9e358d87895ee7e2300f68a294fd956e61324ae0762c43fa0e8c0641fa0 |
|
MD5 | 0e1e6f7bd0daccbf7ebfa529a4216aca |
|
BLAKE2b-256 | 30e728e8efd6503f14d8edc4f35ff4b4a363ec21c5e411d48c71c7a6d61759db |