powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / Direct link to mp4 from mail.ru
18 сообщений из 18, страница 1 из 1
Direct link to mp4 from mail.ru
    #38930562
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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.
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930574
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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...
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930593
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
link shows this {"error":"Can't find VideoInstance mail/userxyz/_myvideo/videoxyz"} it's ok?

show your script
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930633
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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.
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930801
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
http://cdn45.my.mail.ru/v/53452064.mp4 returns forbidden 403. likely access to files directly closed
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930822
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930844
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
360 & 480 links returned forbidden
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38930876
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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 :)
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931135
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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];
?>
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931215
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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.
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931254
Фотография NekZ
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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...
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931260
Фотография NekZ
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SharuPoNemnogu http://my.mail.ru/mail/spasenieviisuse/

D'oh... Is that you on those videos?
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931407
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
NekZ,

да взял первое попавшееся для теста)
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38931500
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
@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.
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38933221
xSlavikx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
up, nobody for an idea ? :)
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38933255
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
xSlavikx,

read about selenium, maybe it's help you
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38933271
Фотография NekZ
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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.
...
Рейтинг: 0 / 0
Direct link to mp4 from mail.ru
    #38933289
SharuPoNemnogu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
I tried curl, but it did not work. Try again, maybe you will..
...
Рейтинг: 0 / 0
18 сообщений из 18, страница 1 из 1
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / Direct link to mp4 from mail.ru
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]