Python Code: Extract Caption from video

  from youtube_transcript_api import YouTubeTranscriptApi


def get_video_id(youtube_video_link):

    # Extract the video ID from the YouTube URL

    if "youtube.com" in youtube_video_link:

        return youtube_video_link.split("v=")[1].split("&")[0]

    elif "youtu.be" in youtube_video_link:

        return youtube_video_link.split("/")[-1]

    else:

        raise ValueError("Invalid YouTube video link")


def get_subtitles_paragraph(youtube_video_link):

    try:

        video_id = get_video_id(youtube_video_link)

        subtitles = YouTubeTranscriptApi.get_transcript(video_id)

        full_subtitle = " ".join(subtitle["text"] for subtitle in subtitles)

        return full_subtitle

    except Exception as e:

        print(f"Error: {e}")

        return None


if __name__ == "__main__":

    youtube_video_link = "https://www.youtube.com/watch?v=w4pL2Cvy0t4&feature=share7"

    full_subtitle = get_subtitles_paragraph(youtube_video_link)

    if full_subtitle:

        print(full_subtitle)

OP:>
that you used to go up on Mulholland Drive and park every night and visualize seeing yourself as yeah I would visualize uh yeah this is where you were broken poor right having directors interested in me and people that I respected uh um saying you know I like your work or whatever that is and and uh I would visualize things coming to me that I wanted or whatever so didn't you write yourself a check I heard that you did is that true I wrote myself a check for 10 million dollars for acting services rendered and I gave myself uh five years or three years maybe and uh and I dated at Thanksgiving 1995. and I put it in my wallet and I kept it there and it deteriorated and deteriorated and stuff but then just before Thanksgiving 1995 I found out that I was going to make 10 million dollars on I think it was Dumb and Dumber Dumb and Dumber yeah yeah so you visualize yourself throughout history the most successful artists athletes and inventors have used a secret technique to create their success there is no difference between you and these great successful people other than they had the ability and knowledge to harness these techniques these techniques are never taught to the average person which is a shame because if used correctly they can transform one from poverty to wealth from sickness to health Napoleon Hill set the greatest sin of all of mankind was the neglect to use this greatest asset he said if you use this acid you will have everything you want in abundance he didn't say within reason he said everything in abundance stay tuned to the end of this video and I will show you step by step how to use this secret technique to get everything you want in your life but first here's what a few people you may know have to say about it when people talk about visualization how does visualization help with that you wrote a lot about [Music] my dreams and visualizing kind of really played a role in to making me motivated and helping me achieve the goals that I had it is everything for me I literally sat down two three months before and I've made a decision in my head that practicing regularly their visuals running in my head me dominating that bullet I had to Envision it because if I didn't I wouldn't be here so not only did I Envision it I envisioned it so much so clearly and so precisely in my head that I'm here now and visualization is a it's a huge factor in improving technical skills when you focus on something and you really things can really happen in in your life visualization still can actually cause a rewiring of the brain beneficially I visualized I'm sitting here on the steering we're visualizing a brand new car and visualizing good things in in times of struggle we had done it a thousand times in his head he had warmed up and backstage he had heard a crowd he had smelt the arena you'd see in the audience he would really immerse himself in the in the in the fight night so by the time Fight Night come along he's the walking on yeah this is my thousandth time doing this with all of these great people are doing is seeing their Vision in their Mind's Eye in in 3D before they achieve it if you want to change the station on your TV you change the frequency if you want to change the station on your radio you change the frequency see your mind is an electromagnet once you charge it with a clear image of what you want you change your frequency you change your channel and you magnetize it to you you no longer have to chase after it anymore it will start to chase you see this is better than the Law of Attraction it's called The Law of assumption it was first discovered by Neville Goddard Goddard said assume the feeling of the wish fulfilled and continue therein and the universe has no choice but to harden your assumption into present fact Goddard said it's not about believing in it it's about believing it in don't broadcast what you want simply assume you already have it this will create the deja vu effect you rehearse a situation successfully in your mind and then it happens in reality giving you the deja vu feeling or oh I've already been here before now this capacity is not inborn in fact I'll show you how to do it at the end of this video but first here's a few people you may know who have used this technique Aristotle said the soul cannot dream without pictures Vincent van Gogh said I dream my painting and then I paint my dream the great Walt Disney when he was on his deathbed he was interviewed by a reporter on his final day the reporter told him sir you have this amazing Epcot being built by your friend Ken Kerr but you will never see it how does that make you feel and then Disney looked up at him and said you don't get it if I didn't see it you'll never see Roger Bannister the man who broke the four minute mile said he did it because he visualized it many times before the race he said he visualized the event to create a sense of certainty in his mind and body he would close his eyes and see the race step by step he would create the image he would he would see the finish line and hear the crowd in his mind little known fact Roger Bannister went on to become a neuroscientist in his book mind gym Gary Mack says that Brazilian soccer player Pele before every game would go to the locker room an hour earlier before everyone else he would lie down using a towel as a pillow and cover his eyes he would watch a film of himself as a kid playing soccer on the beach in Brazil this movie in his mind brought back glorious memories and he would vividly recall the thrill of the game and the joy he would immerse himself in the Love of the Game in short before every game he would put himself in touch with his pure love for the sport after that Pele would watch himself reliving some of his greatest moments in World competitions he would let himself feel the winning moments and enjoy the intensity and those feelings over and over he talked about how crucial it was to make a strong connection with those images and feelings finally he would see himself as he was about to become playing brilliantly scoring goals in a mental movie made up of positive images of enjoyment and Triumph he imagined everything before it happened the field his opponents his team he saw himself playing Like A Champion a force that could not be stopped he said remember it's not just about the visuals and the imagery it's more about the feelings the emotions associated with success he vividly imagined how good it all felt only after 30 minutes of this visualization would Pele then start to warm up and stretch his actual muscles he primed his mind for victory and Pele who some say is the world's greatest soccer player of all time was Unstoppable all of these great people harnessed the power of the law of assumption to succeed now you may be asking yourself are there any scientific studies that support the power of visualization or the law of assumption well the answer is yes in 1996 a study by Dr Bia Soto from the University of Chicago was conducted via Soto split his participants into three groups and tested how many free throws they could make he had the first group practice shooting free throws for one hour he had the second group just visualized themselves making free throws and he had the third group do nothing after 30 days he tested them again the first group who practiced shooting free throws improved by 24 the third group didn't improve at all but the second group the group who only visualized themselves making free throws improved 23 without ever touching a basketball there was another study where people practice the five finger piano exercise for two hours a day they showed a similar increase in brain activity as those who practiced solely in their imagination without ever touching a keyboard scientists have confirmed that the brain does not know the difference between a vivid imagination and reality therefore using visualization you can actually improve performance without actually engaging in the activity see that's why Einstein said imagination is greater than knowledge in another study scientists have the participants imagine flexing their biceps as hard as they could for five times a week in a few weeks they increase their bicep strength by almost 14 percent without ever doing a curl and there are other studies that have had similar results okay now here's the part that you've all been waiting for here's how you create success in your life through the power of visualization you can use this technique to succeed in any area of life from earning 10 million dollars like Jim Carrey did to overcoming stage fright or anxiety in dating and it only takes 10 minutes a day set your time you can do this by sitting in a chair or if you prefer just laying down now there are two ways to do visualization the first is you see the scene playing out in your mind but through your own eyes as if you are already there the second way is to see yourself on a movie screen this is called Mind theater Studies have compared the two methods and the first method of seeing it through your own eyes is more powerful but for me I like to do both of them now the first step is to relax your body relax your eyes relax your face relax your shoulders relax your entire body it may take up to 10 minutes to get into a completely relaxed state but this is important because relaxation allows the message to enter your inner subconscious now the next step I got from the silver method which is all about putting your mind into the Alpha Brain State what you want to do is you want to visualize the numbers three and then two and then one and then you go into Alpha State the Alpha Brain state is a state of creativity and learning it's also called The Flow State now after you do this I want you to fully immerse yourself in the environment of your goal see yourself with the gold image whether it's winning the race holding the trophy cashing the check walking into the house Etc remember the greater the detail the quicker the attainment of your vision include images of overcoming adversity see yourself fighting your way out of things overcoming it and reaching success the next step is bringing in Big Time emotion intense feeling into the visualization Goddard said feeling is the secret the next step is to make it Vivid Vivid Vivid make it clear remember the clearer the more detailed the vision the quicker the attainment next I want you to engage all of your senses I'm talking total sensory immersion what does it feel like to move your muscles is there any wind what does the ground feel like underneath your feet are there any smells in the environment the grass the outdoor what do you hear how are you breathing feel the rise and fall of all of these senses and emotions and finally just feel enthusiastically how it feels to have already achieved your goal behave as if you already have it believe that you already have it and that's it you can do this for 10 to 20 minutes every day this technique this secret if done correctly will turn you into a magnet attracting everything you want in abundance I mean think about it look around your room right now everything you see came out of the human mind came out of the human imagination and therefore imagination creates reality action turns into fact how many science fiction movies became fact nearly all of them the biggest problem that most people face is imagining what they don't want which is why Napoleon Hill said if you spend as much time visualizing success as you do thinking about failure you would change your life once again guys it's not about a feeling of craving of wanting of Desiring because that will simply push everything away the law of assumption is about matching the vibration as though it is already done because as Neville Goddard said assume the feeling of the wish fulfilled and the universe will have no choice but to harden that assumption into present fact peace

Comments

Popular posts from this blog

[ STRUCTURED ] Unity Catalog Concept in Databricks