Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
Hello, First of all, excuse me, i only speak a little english. I'm trying to get the direct link of videos of mail.ru directly in a script. I am able to get the link of the mp4 ( http://cdnxx.mail.ru) from the json (ex : http://videoapi.mail.ru/videos/..../_myvideo//100.json). But the link i get does'nt work, it gives me a blank white screen. Is it possible to make a script that give me a good link to the mp4 ? I hope you understand me :) Thank you. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 14:35 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
http://videoapi.my.mail.ru/videos/mail/userxyz/_myvideo/videoxyz.json --> ex of json link when i put this link direct in my browser, the links are available. when i get the json by a remote server with script, links are not available. Maybe that's more clear. Maybe the post is in the bad section, sorry... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 14:43 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
link shows this {"error":"Can't find VideoInstance mail/userxyz/_myvideo/videoxyz"} it's ok? show your script ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 14:55 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
userxyz and videoxyz are exemple to replace with good values like : here is a good exemple --> http://videoapi.mail.ru/videos/bk/dinskc/_myvideo/1117.json i can't copy the little script here, i don't have access to my server from my job... i will copy it tonight. The script is execute from my server. i have for ex : mysite.com/link.php?file=1117 so i'll retreive the json, parse it and extract link but don't work since one server. I must put manually the json link in browser and copy link in the json. Autamatically that's not working. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 15:11 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
http://cdn45.my.mail.ru/v/53452064.mp4 returns forbidden 403. likely access to files directly closed ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 16:34 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
No, we can access via http://videoapi.my.mail.ru/videos/bk/dinskc/_myvideo/1117.json to have 360p : http://cdn24.my.mail.ru/v/53452064.mp4?sign=31e26e6092b27fe6834505498ed9245802e9d37e&slave []=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F53452064-v.mp4&p=f&expire_at=1428613200&touch=1426513631 and 480p : http://cdn24.my.mail.ru/hv/53452064.mp4?sign=3e21ce44899a82655ea7a36386e3445b2e203774&slave []=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F53452064-hv.mp4&p=f&expire_at=1428613200&touch=1426513631 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 16:48 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
360 & 480 links returned forbidden ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 16:55 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
yes of course, you must copy link to json before in your browser and copy entire link in json to have access file. you also can have the direct link using this site but in 2 time : http://zasasa.com/ru/skachat_video_s_mail.ru.php i see on one site that it is possible to generate an available link automatically but how ? that's the question :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 17:08 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
the little script to get url... but whitescreen... <?php $file = $_GET['file']; $json = file_get_contents('http://videoapi.my.mail.ru/videos/bk/dinskc/_myvideo/' .$file .'.json'); $json_a = json_decode($json,true); $url = $json_a[videos][0]; $img = $json_a[meta][poster]; ?> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 20:34 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
i try uri http://my.mail.ru/mail/spasenieviisuse/video/_myvideo/309.html when use file_get_contents or curl (with emulate browser) returned link http://cdn51.my.mail.ru/hv/34240857.mp4?sign=20cec26ff4d916ea62ba5e31953ef31e9c896a69&slave []=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F34240857-hv.mp4&p=f&expire_at=1428613200 in browser returned link http://cdn51.my.mail.ru/hv/34240857.mp4?sign=ead04bdc094d699a1e000d3d9c3e43ac8027628b&slave []=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F34240857-hv.mp4&p=f&expire_at=1428613200 different parameter sign . If change sign parameter in link one to sign from link two it's work fine. I don't know why it happens... information for consideration. I hope to help you. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2015, 23:19 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
xSlavikx, At first, I think, you should play with HTTP headers and emulate a proper HTTP request, similar to your browser one. Perhaps they might introduce some kind of security to detect and reject such requests. Then you'd better to try running a background browser, or the same mechanism, such as Selenium, I dunno... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.04.2015, 00:26 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
NekZ, да взял первое попавшееся для теста) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.04.2015, 09:18 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
@SharuPoNemnogu Thank you. Yes, i noticed parameter is different, that's why i wrote this topic here, to find a way :p @NekZ Thank you for the answer, probably the best way but too difficult for me too. But i'll check this way. I also see on another topic here link like this to open file : http://videoapi.my.mail.ru/file/v//mail/ua0app/_myvideo/7?c=mr_api_video&expire_at=1417904149&sign=79bbdc605945a43ed7f0fa3cbcb32ae1f70755cd ( http://www.sql.ru/forum/1130981/kak-eto-snyali) but don't know what are the parameters for... if someone knows... Thank you. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.04.2015, 10:16 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
up, nobody for an idea ? :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.04.2015, 16:21 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
xSlavikx, read about selenium, maybe it's help you ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.04.2015, 16:44 |
|
||
|
Direct link to mp4 from mail.ru
|
|||
|---|---|---|---|
|
#18+
SharuPoNemnoguxSlavikx, read about selenium , maybe it's help you That was a raw idea, besides I'm not a web developer to advise Selenium using for xSlavikx's purposes. xSlavikx, Why don't you consider CURL library for that? E.g. http://stackoverflow.com/a/2440753/2080453 If I were you, I would look for the services which are designed to emulate real web browsers as well. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.04.2015, 17:00 |
|
||
|
|

start [/forum/topic.php?fid=23&msg=38930876&tid=1461856]: |
0ms |
get settings: |
7ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
57ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
61ms |
get tp. blocked users: |
1ms |
| others: | 227ms |
| total: | 388ms |

| 0 / 0 |
