🎉Welcome to Fantastic YouTube Shorts Extractor🎉 – Your one-stop solution to automagically identify and carve out the most engaging shorts from your favorite YouTube videos! Be ready to harvest the power of AI to transform boring long videos into crisp, catchy, and share-worthy short segments!
Your beloved video enters our mystical tool, gets stripped down to its bare captions, and voilà – analyzed by the arcane powers of GPT-4. This enchanted process sifts through every word, seeking out those hidden gems – clear, relevant, and punchy text segments that can stand tall and proud on their own as YouTube shorts!🎥✨
Pre-requisites:
Enchanting the Environment:
- Clone the repository:
git clone [repo_url] && cd [repo_name]
- Weave the Node.js spells:
npm install
- Secret Whispers (Env Variables):
- Create a
.env
file in your project root.
OPENAI_API_KEY=YourOpenAIKeyHere PORT=3000
🚨 Keep your secrets safe. Never share the
.env
file! - Create a
🔥Ignite the Engines:
- Node.js:
node index.js
- Visit: http://localhost:3000 and behold the magic!
-
Caption Extraction:
- The sorcerer, aka
youtube.js
, conjures the video captions, extracting the text along with the respective mystical timestamps.
- The sorcerer, aka
-
Caption Analysis:
- The alchemist in
fetchresults.js
transforms the captions, utilizing the mighty GPT-4 from OpenAI, recognizing the text chunks prime for transmutation into compelling YouTube shorts.
- The alchemist in
-
Segment Identification:
- Upon analysis, clear and tantalizing segments are identified, extracting their timestamps, ready to be forged into dazzling video shorts.
Conjure your shorts with the Fantastic YouTube Shorts Extractor and let the worlds of AI and Video enchant your audience to the realm of endless engagement! 🚀🎥✨