i  get this error : C:\Users\elias\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:\Users\elias\PycharmProjects\pythonProject1\main.py 
Traceback (most recent call last):
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1037, in _send_output
    self.send(msg)
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 975, in send
    self.connect()
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1447, in connect
    super().connect()
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 941, in connect
    self.sock = self._create_connection(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 827, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\elias\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 962, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 11002] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\elias\PycharmProjects\pythonProject1\main.py", line 12, in <module>
    for video in pl.videos:
  File "C:\Users\elias\PycharmProjects\pythonProject1\venv\Lib\site-packages\pytube\helpers.py", line 71, in __iter__
    curr_item = self[iter_index]
                ~~~~^^^^^^^^^^^^
  File "C:\Users\elias\PycharmProjects\pythonProject1\venv\Lib\site-packages\pytube\helpers.py", line 57, in __getitem__
    next_item = next(self.gen)
                ^^^^^^^^^^^^^^
from pytube import Playlist
from moviepy.editor import *
from mutagen.easyid3 import EasyID3

# Create object for the YouTube playlist
pl = Playlist(“https://youtube.com/playlist?list=PLNFI79D7MYqPlOvLY1TqRKnZWCGKMIIGw”)

# Set output directory path
output_directory = r"C:\Users\elias\PycharmProjects"

# Loop through all the videos in the playlist and download their audio streams
for video in pl.videos:
    audio_stream = video.streams.filter(only_audio=True).first()
    audio_file_path = audio_stream.download(output_path=output_directory)
    
    # Convert audio file to mp3 format
    mp3_file_path = os.path.splitext(audio_file_path)[0] + “.mp3”
    AudioFileClip(audio_file_path).write_audiofile(mp3_file_path)
    os.remove(audio_file_path) # Delete the original audio file (mp4 format)
    
    # Set contributing artist tag to YouTube channel name
    audio = EasyID3(mp3_file_path)
    audio[‘artist’] = [video.author]
    audio.save()

Process finished with exit code 1
