D
D
DenimTornado2014-01-17 21:41:01
Yandex
DenimTornado, 2014-01-17 21:41:01

Is it possible to get a link to a video from Yandex.Video with only the id?

Hello, there are several links of the form:
yandex.ru/video/search?p=1&text=%D0%BC%D0%BE%D1%88...
That is, a person once found a video in a search and it was from the general search that he watched . Naturally, videos were added and the link is no longer relevant, at least because the first parameter is the page number. Question: how to get a direct link to Yandex.Video with id - iCH2I7QNUXI?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2014-01-18
@DenimTornado

An interesting task, but I doubt the possibility of its full implementation. But there is a partial solution.
This ID appears on the Yandex website only in search results and is not indexed anywhere. At the same time, it is clearly constant for this video, to confirm this theory, it is enough to find random links from the network, for example:
- yandex.ru/video/search?text=DSG%20golf%206&filmId=...
- yandex.ru/video/ search?p=1&text=DSG%20golf%206&fil... The
links were taken from this page, where they were posted a couple of weeks ago :
- www.drive2.ru/communities/vw-club/blog/859839
a small experiment to remove the idea of ​​attachment to a specific search query / page / person. Let's take the first video:
- yandex.ru/video/search?text=DSG%20golf%206&filmId=...
Follow the link, the video is open.
Now we look at the keywords by which it can be found. Let's take "Golf 6", drive it into the search with our ID :
- yandex.ru/video/search?text=Golf%206&filmId=JJRo6GyWUXI - yandex.ru/video/search?p=13&text=Golf%206&filmId=J... If you look at the page formation through debugging, then the page with successful results for us differs by accessing " video.yandex.net/player.xml?callback =jQuery
<...>". Comparing the HTML code at the very beginning and at the end of the page formation, I did not find any obvious at first glance search calls for the video corresponding to our ID. From this we can conclude that the issuance page is formed first, then some JavaScript searches on the page the ID specified in the link and just clicks it for
us.I decided to try to find at least one more link to this key: adding to favorites, sharing with friends, liking, etc. - I did not find anything similar to our code.
So the only partial solution mentioned in the first appendix is ​​to follow the link and try to loop through all the SERPs, waiting for the page to fully load each time. This can be automated, but the result will not always be, at least because the number of issue pages is limited to 50, and the issue, as content is replenished, constantly goes beyond this limit. By the way, sometimes it was possible to find a video through other search queries similar to this one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question