<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Caesar Herman Hinlo</title>
    <description>The latest articles on DEV Community by Caesar Herman Hinlo (@chocomacho).</description>
    <link>https://dev.to/chocomacho</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2162194%2Fd38a553b-7d00-4ef1-9f8a-65f354c31495.jpg</url>
      <title>DEV Community: Caesar Herman Hinlo</title>
      <link>https://dev.to/chocomacho</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chocomacho"/>
    <language>en</language>
    <item>
      <title>THE SELECT CLAUSE</title>
      <dc:creator>Caesar Herman Hinlo</dc:creator>
      <pubDate>Sun, 13 Oct 2024 10:37:58 +0000</pubDate>
      <link>https://dev.to/chocomacho/the-select-clause-2o2o</link>
      <guid>https://dev.to/chocomacho/the-select-clause-2o2o</guid>
      <description>&lt;p&gt;Here in this YouTube video we are going to discuss the SELECT clause&lt;br&gt;
Enjoy! &lt;a href="https://www.youtube.com/watch?v=HAO1MZ6hVqc&amp;amp;t=35s" rel="noopener noreferrer"&gt;LINK&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj3uzxh8gh82rgofxa49e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj3uzxh8gh82rgofxa49e.png" alt="Image description" width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Download multiple YouTube videos and audio using Python.</title>
      <dc:creator>Caesar Herman Hinlo</dc:creator>
      <pubDate>Thu, 03 Oct 2024 13:34:29 +0000</pubDate>
      <link>https://dev.to/chocomacho/download-yt-video-and-audio-using-python-55n9</link>
      <guid>https://dev.to/chocomacho/download-yt-video-and-audio-using-python-55n9</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;In this series, we will download YouTube videos and audio using the PyTubeFix and MoviePy libraries.&lt;br&gt;
Let's get started!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Please follow the instructions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new folder called "SongDownload" in your documents. You can use any name for the folder.&lt;/li&gt;
&lt;li&gt;Inside the SongDownload folder create a new file called index.py&lt;/li&gt;
&lt;li&gt;Open a terminal and CD to your songDownload Folder and install the following libraries. &lt;strong&gt;pip install moviepy&lt;/strong&gt; and &lt;strong&gt;pip install pytubefix&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Copy the code from this document and paste it into the index.py file.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from pytubefix import YouTube
from pytubefix.cli import on_progress
from moviepy.editor import *

#Modify the urls with your YouTube links
urls = [
    "https://www.youtube.com/watch?v=PU7f1t0Q-Ww&amp;amp;t=1433s",  # Bee gees
    "https://www.youtube.com/watch?v=P5aCBIY3ZeA",  # Queen
    "https://www.youtube.com/watch?v=LI0Gt5hmi68",  # Carpenters
    "https://www.youtube.com/watch?v=H16mqmLYia4",  # Abba
    "https://www.youtube.com/watch?v=JJtBKODCUTQ",  # Air supply

]

for index, url in enumerate(urls):
    yt = YouTube(url, on_progress_callback=on_progress)
    print(f"Progress:({index+1}/{len(urls)})")
    print(f"Title: {yt.title}")

    video_download = yt.streams.get_highest_resolution()
    print("Downloading Video...")
    video_download.download(filename=f"{yt.title}.mp4")

    video = VideoFileClip(f"{yt.title}.mp4")
    video.audio.write_audiofile(f"{yt.title}.mp3")

    print("-" * 60)
print("DOWNLOAD FINISHED. OPEN DESTINATION FOLDER AND ENJOY!")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Modify the array named urls with your youtube links&lt;/li&gt;
&lt;li&gt;On your terminal execute the command &lt;strong&gt;python index.py&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Enjoy&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
