VistaLover Posted 15 hours ago Posted 15 hours ago On 7/12/2025 at 8:53 AM, nicolaasjan said: BTW, I've made a significant change to `./youtube_dl/utils.py`, as I suggested here. Youtube-dl actually works now. Quote https://github.com/ytdl-org/youtube-dl/issues/33142#issuecomment-3008909618 ... And now yt-dlp have updated their random UA string to report Chrome 132-138: https://github.com/yt-dlp/yt-dlp/commit/c59ad2b066bbccd3cc4eed580842f961bce7dd4a#diff-b6d91e8afdfc47fb2b59e37d22d3621b79d252bc5a8205edc2b80530dcceecc2 1
nicolaasjan Posted 3 hours ago Posted 3 hours ago 11 hours ago, VistaLover said: ... And now yt-dlp have updated their random UA string to report Chrome 132-138: https://github.com/yt-dlp/yt-dlp/commit/c59ad2b066bbccd3cc4eed580842f961bce7dd4a#diff-b6d91e8afdfc47fb2b59e37d22d3621b79d252bc5a8205edc2b80530dcceecc2 Yes, I saw that. However, their new code snippet used in that commit didn't play well with Python 3.4.4... Maybe I can implement it like: def random_user_agent(): _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36' _CHROME_VERSIONS = ( '132.0.0.0', '133.0.0.0', '134.0.0.0', '135.0.0.0', '136.0.0.0', '137.0.0.0', '138.0.0.0', ) return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS) 🤔
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now