Run the Python script using the following command:

Run the following commands:

Alternatively, you can use the requests library to download the song and ffmpeg to convert it to a suitable format.

import requests import subprocess

from pytube import YouTube