Jul-07-2025, 11:44 PM
Hey,
I tried many ways to fix it. But it didnt work.
I tried to update certificates in terminal, install new python version, applications-->python3.13 and double click to install certificate command file. None of them worked.
I use macos and from what I've seen, this problem is mostly experienced by macOS users.
Do you know any solution to solve this? i'm going crazy.
from pytube import YouTube
url = YouTube("https://www.youtube.com/watch?v=WRfZf43dnj8&ab_channel=TED-Ed")
print(f"video title {url.title}")Whenever i ran this code snippet, python throws "urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>". I tried many ways to fix it. But it didnt work.
I tried to update certificates in terminal, install new python version, applications-->python3.13 and double click to install certificate command file. None of them worked.
I use macos and from what I've seen, this problem is mostly experienced by macOS users.
Do you know any solution to solve this? i'm going crazy.
