youtube-dl --write-auto-sub --proxy socks5://127.0.0.1:1080 https://www.youtube.com/watch?v=VideoID

Why use youtube-dl to download instead of using the websites dedicated to downloading youtube video subtitles?
Because there are a lot of viruses on those sites.