While downloading youtube video through youtube-dl command I was getting an error shown below.
amisha@amisha:~/you$ youtube-dl https://www.youtube.com/watch?v=Q-GOFPM01d0
WARNING: unable to set language: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
Q-GOFPM01d0: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
Then I removed youtube-dl and installed it again.
sudo apt-get remove youtube-dl sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
And after that it works fine. Hope this may help you.