Welcome to the Youtube Video Note Taker project, a tool designed to streamline the conversion of videos into transcripts and generate organized PDF notes. This Chrome Extension leverages APIs for video conversion, providing a seamless and efficient workflow.
demo.mp4
To get started, follow these simple steps:
-
Clone the Repository: Begin by cloning this repository to your local machine.
git clone https://github.com/Jeybird248/Chrome-Extension.git
-
Configure API Credentials: Obtain the necessary API credentials for video conversion and ensure they are properly configured.
-
Install as Chrome Extension: Add the extension to your Google Chrome browser.
Once installed, the Youtube Video Note Taker simplifies the entire process:
-
Enter Filename: Provide a filename for the notes you wish to generate.
-
Download Video: Click the "Download" button to initiate the video download and transcript creation.
-
Organized Notes: The transcript is transformed into organized notes for easy consumption.
-
Download PDF: Finally, download the PDF containing the structured notes.
The extension executes a sequence of API calls as follows:
- Endpoint:
http://localhost:5000/transcribe - Method: POST
- Description: Transcribes the video content from a YouTube link.
- Request:
- Body: JSON object
url(string): YouTube video URL.
- Body: JSON object
- Response:
- Status 200: Successful response with transcription data.
- Status 400: Bad request with an error message.
- Endpoint:
https://llama.k8s-gosha.atlas.illinois.edu/completion - Method: POST
- Description: Generates a summary with bullet points for the transcribed text.
- Request:
- Body: JSON object
prompt(string): Summarization prompt with the transcribed text.n_predict(number): Number of predictions.
- Body: JSON object
- Response:
- Status 200: Successful response with summarized content.
- Status 400: Bad request with an error message.
The Chrome Extension includes a content script that interacts with the YouTube page. Here's a breakdown of the key components:
-
Event Listeners: The extension includes event listeners for user interactions with the filename input, download button, and clear button.
-
YouTube Link Detection: It checks if the current URL is a YouTube link before initiating the API call sequence.
-
Error Handling: Proper error handling ensures a smooth user experience even in the presence of issues.
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.