Fix Yandex data_raw extraction error in yt-dlp

This tutorial teaches you how to fix Yandex data_raw extraction error in yt-dlp step by step. Currently, yt-dlp fails to extract raw data from Yandex video previews due to recent structural changes on Yandex’s page structure. As a result, yt-dlp fails to parse the video’s content and you get the following error:

[YandexVideoPreview] 1364812742602074454: Downloading webpage
ERROR: [YandexVideoPreview] 1364812742602074454: Unable to extract data_raw; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

The above error interrupts the program and you aren’t able to download the video from Yandex. How to fix the data_raw extraction error in yt-dlp’s Yandex extractor?

How to fix Yandex data_raw extraction error in yt-dlp

At the moment, no official fix has been merged into yt-dlp’s codebase, so simply updating the program won’t resolve the issue. Fortunately, a developer known by the nickname anpavlov has already submitted a pull request that addresses the data_raw extraction problem in the Yandex extractor.

Step 1: Download the yt-dlp codebase from anpavlov Github’s repository

Visit anpavlov’s fork of yt-dlp repository on Github — this version includes the proposed fix for the Yandex data_raw extraction issue. Once on the page, click the “Code” button and choose “Download ZIP” to get the full source code.

Step 2: Extract the zip archive

After downloading yt-dlp fork as a zip archive, extract it on your working directory. Open a command prompt and navigate to the yt-dlp’s codebase as below.

cd yt-dlp-fix-yandexvideo

Step 3: Run yt-dlp from source

Once in the directory, run yt-dlp followed by your Yandex video’s URL.

python -m yt_dlp "https://yandex.ru/video/preview/7294165698246193430"

The following shows that the data_raw error in Yandex yt-dlp’s extractor has been fixed.

Final thoughts

Through this tutorial, you learned how to manually fix the data_raw extraction error in yt-dlp’s Yandex extractor by running the patched code from anpavlov’s repository. Once the fix has been officially merged into the main yt-dlp’s repository, you can return to using the standard version.

Leave comment

Your email address will not be published. Required fields are marked with *.