Selamün aleyküm,
Arkadaslar atv nin m3u8 token li linkini kendi sayfasindan nasıl alabiliriz.
Selamün aleyküm,
Arkadaslar atv nin m3u8 token li linkini kendi sayfasindan nasıl alabiliriz.
Ömer0, ballikaya, eskitopcu, uyd123, gokmen_bjk, emredemir, alim58, maxinett, oturak, dalgic, bydoktor, krtl82, cengizmax, zmotsan, rin84684, ezel198, lovestoryfb, renji16, Orchan, Centilmen82, metin16, bayfenerli, Emirhalid, verarsche, sergen1903, Jeff, markclark, demo, therebel, Ekol74, karakurt06, ferdibaba34, devrekli67li, ibrahimxd1, kardasali64, recep1996, alonenova, homezon61, hasanruzgar, omr1511, Can27, tilki tilki, bulent_39, kadirsener1, 0332efsane, yoyopyo, kbarut, neco67, hakdemiri81, tky66, Diyaren, M1e2h3m1e2t3, serkan60, dereli1970, Kuzey07, ayanni, recep1, ozkan1986, Muco15, enzo45, fadimahmud, corum19, Hoffe1899, musa35, ton, kacak cakal, k.m.46, iser43, gigaset, hakkicam3515, rasimtorros, Osman50, harputlu, murat5757, batuhan74, Levoaga05, karabagli, Dogancansuu, Sadri1983, sercanx, hasantas, istanbullu34, bjk06, delikadir, meram, Semih65, biosman, kocan, yilmaz, derbeder1973
A.Selam
Ugraştıgım kod
Sonuç:PHP- Kodu:
<?php
- error_reporting(E_ALL);
- ini_set("display_errors", 1);
- function fakeip() {
- // $ipaddress = '172.217.22.67';
- $ipaddress = getenv('REMOTE_ADDR');
- return $ipaddress;
- }
- function baglan($url){
- $ch=curl_init();
- curl_setopt($ch,CURLOPT_URL,$url);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch,CURLOPT_REFERER,"https://www.atv.com.tr/webtv/canli-yayin");
- curl_setopt($ch,CURLOPT_HTTPHEADER, array("REMOTE_ADDR: ".fakeip(),"X-Client-IP: ".fakeip(),"Client-IP: ".fakeip(),"HTTP_X_FORWARDED_FOR: ".fakeip(),"X-Forwarded-For: ".fakeip()));
- curl_setopt( $ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0');
- curl_setopt($ch,CURLOPT_TIMEOUT,60);
- $cikti=curl_exec($ch);
- curl_close($ch);
- //$cikti = preg_replace("/\s+/", " ", $cikti);
- $cikti = trim($cikti);
- return str_replace(array("> <"),"><",$cikti); }
- ######################
- ###############
- $baglan_atv = baglan("https://securevideotoken.tmgrup.com.tr/webtv/secure?371930&url=https://trkvz-live.ercdn.net/atvhd/atvhd.m3u8");
- echo $baglan_atv."\n";
- preg_match('@st=(.+?)e=(.+?)"@si',$baglan_atv,$m3u);
- print_r($m3u);
- ?>
Her şey şura da gizli çözemedimKod:
- {"Success":true,"Url":"https://trkvz-live.ercdn.net/atvhd/atvhd.m3u8?st=nVTm0qJ4vwGapntEGX1VVw&e=1581769712","AlternateUrl":"","Time":41600,"IP":"xx.xx.xx.xx"}
- Array
- (
- [0] => st=nVTm0qJ4vwGapntEGX1VVw&e=1581769712"
- [1] => nVTm0qJ4vwGapntEGX1VVw&
- [2] => 1581769712
- )
OlmadıKod:
- nVTm0qJ4vwGapntEGX1VVw&
Kandi sayfasıda <dib id="live"></div> id element uzeri çalışıyor bir turlu bulamadım.
Usta bende localhost çalışıyor fakat server e yukleyince çalışmıyor 403 veriyor. Fakat server den de aşagidaki ornek gibi deniyorum degişik resolutsi için m3u8 veriyor. 403 olsa onuda vermez bence.
mesela serverde oyle bir header çikiyor.PHP- Kodu:
<?php
- if (getenv('HTTP_X_FORWARDED_FOR')) { $pipaddress = getenv('HTTP_X_FORWARDED_FOR');
- $ipaddress = getenv('REMOTE_ADDR');
- echo "Your Proxy IP address is : ".$pipaddress. "(via $ipaddress)" ; }
- else { $ipaddress = getenv('REMOTE_ADDR'); echo "Your IP address is : $ipaddress\r\n"; }
- function getPage($url, $referer, $ipaddress){
- $timeout=30;
- $curl = curl_init();
- if(strstr($referer,"://")){
- curl_setopt ($curl, CURLOPT_REFERER, $referer);
- }
- curl_setopt ($curl, CURLOPT_URL, $url);
- curl_setopt ($curl, CURLOPT_TIMEOUT, $timeout);
- curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
- curl_setopt ($curl, CURLOPT_HEADER, $ipaddress);
- curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 1);
- $html = curl_exec ($curl);
- curl_close ($curl);
- return $html;
- }
- $html = getPage("https://securevideotoken.tmgrup.com.tr/webtv/secure?url=http://trkvz-live.ercdn.net/atvhd/atvhd.m3u8", "https://www.atv.com.tr/webtv/canli-yayin", 1);
- preg_match_all(
- '#Url"\:"(.*?)"#si',
- $html,
- $posts,
- PREG_SET_ORDER
- );
- foreach ($posts as $post) {
- $link = $post[1];
- echo $link;
- echo getPage("$link", "$ipaddress", 1);
- }
- ?>
header de bu sekil.Kod:
- Your IP address is : xx.xx.xx. http://trkvz-live.ercdn.net/atvhd/atvhd.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020HTTP/1.1 200 OK Date: Sat, 15 Feb 2020 01:23:40 GMT Content-Type: application/vnd.apple.mpegurl Transfer-Encoding: chunked Connection: keep-alive ETag: "5e474812-190" Access-Control-Allow-Origin: * X0: HIT Server: esrv Cache-Control: max-age=0, no-cache, no-store X1: EXPIRED #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1200000,NAME=720p,RESOLUTION=1536x864 atvhd_720p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=800000,NAME=480p,RESOLUTION=1024x576 atvhd_480p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=400000,NAME=360p,RESOLUTION=768x432 atvhd_360p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=200000,NAME=240p,RESOLUTION=512x288 atvhd_240p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020
Usta pc de localhost çalişiyor. Server de olmuyor burdan bakınca ip ile alakali fakat orda takılıyorum.
Ben de şu şekil deniyordum.
lokalhost da $link den gelen ile sorunsuz oluyor. Serverde getPage den ip mi yazıyor header de ok.PHP- Kodu:
<?php
- if (getenv('HTTP_X_FORWARDED_FOR')) { $pipaddress = getenv('HTTP_X_FORWARDED_FOR');
- $ipaddress = getenv('REMOTE_ADDR');
- echo "Your Proxy IP address is : ".$pipaddress. "(via $ipaddress)" ; }
- else { $ipaddress = getenv('REMOTE_ADDR'); echo "Your IP address is : $ipaddress\r\n"; }
- function getPage($url, $referer, $ipaddress){
- $timeout=30;
- $curl = curl_init();
- if(strstr($referer,"://")){
- curl_setopt ($curl, CURLOPT_REFERER, $referer);
- }
- curl_setopt ($curl, CURLOPT_URL, $url);
- curl_setopt ($curl, CURLOPT_TIMEOUT, $timeout);
- curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
- curl_setopt ($curl, CURLOPT_HEADER, $ipaddress);
- curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 1);
- $html = curl_exec ($curl);
- curl_close ($curl);
- return $html;
- }
- $html = getPage("https://securevideotoken.tmgrup.com.tr/webtv/secure?url=http://trkvz-live.ercdn.net/atvhd/atvhd.m3u8", "https://www.atv.com.tr/webtv/canli-yayin", 1);
- preg_match_all(
- '#Url"\:"(.*?)"#si',
- $html,
- $posts,
- PREG_SET_ORDER
- );
- foreach ($posts as $post) {
- $link = $post[1];
- echo $link;
- echo getPage("$link", "$ipaddress", 1);
- }
- ?>
server de getPage yı kullanınca bu çıkıyor.PHP- Kodu:
Your IP address is : xx xxx xxx http://trkvz-live.ercdn.net/atvhd/atvhd.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020HTTP/1.1 200 OK Date: Sat, 15 Feb 2020 01:23:40 GMT Content-Type: application/vnd.apple.mpegurl Transfer-Encoding: chunked Connection: keep-alive ETag: "5e474812-190" Access-Control-Allow-Origin: * X0: HIT Server: esrv Cache-Control: max-age=0, no-cache, no-store X1: EXPIRED #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1200000,NAME=720p,RESOLUTION=1536x864 atvhd_720p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=800000,NAME=480p,RESOLUTION=1024x576 atvhd_480p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=400000,NAME=360p,RESOLUTION=768x432 atvhd_360p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=200000,NAME=240p,RESOLUTION=512x288 atvhd_240p.m3u8?st=IaZdxV1z1a8ItrmPE82MGg&e=1581775020
Merhaba
Calistimi PHP serverde ATV nin linki?
Selam
Mete
Şu an 1 kullanıcı var. (0 üye ve 1 konuk)