• 22-08-2022, 14:49:43
    #1
    Üyeliği durduruldu
    Merhaba,

    https siteden veri çekemiyorum nasıl aşabilirim? kullandığım kodu paylaşıyorum
    hedef site;
    https://www.tv8bucuk.com/tv8-5-canli-yayin

    function curl($url, $post=false)
    {
        $user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6';
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, $post ? true : false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post ? $post : false);
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        $icerik = curl_exec($ch);
        curl_close($ch);
        return $icerik;
    }
  • 22-08-2022, 14:51:27
    #2
    Ssl verify false yapın
    • mertaktas
    mertaktas bunu beğendi.
    1 kişi bunu beğendi.
  • 22-08-2022, 14:51:36
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    SSLVERSION'u silin


            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    Ekleyip deneyin
  • 22-08-2022, 14:52:53
    #4
    Üyeliği durduruldu
    codev adlı üyeden alıntı: mesajı görüntüle
    SSLVERSION'u silin


            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    Ekleyip deneyin
    Teşekkür ederim, fakat sonuç değişmedi veri gelmiyor
  • 22-08-2022, 14:56:48
    #5
    function curl($url, $post=false)
    {
        $user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6';
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, $post ? true : false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post ? $post : false);
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        $icerik = curl_exec($ch);
        curl_close($ch);
        return $icerik;
    }
    var_dump(curl('https://www.tv8bucuk.com/tv8-5-canli-yayin'));
    Kodu çalıştırdığımda aldığım yanıt;

    string(13310) "<!DOCTYPE html><html lang="tr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title></title><meta name="description" content=" 22-08-2022"/><meta name="keywords" content=", haber, haberler, tv8"/><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="robots" content="index, follow" /><link rel="icon" href="/favicon.ico?v=2" type="image/x-icon"><link title="" rel="alternate" type="application/rss+xml" href="https://www.tv8bucuk.com/rss" /><script data-schema="organization" type="application/ld+json">
            {
                "@context" : "http://schema.org",
                "@type" : "Organization",
                "name" : "Tv8,5",
                "url" : "http://www.tv8bucuk.com/",
                "logo" : "http:s://www.tv8bucuk.com/s/template/v2/images/logo.png",
                "sameAs" : [
                    "https://www.facebook.com/TV8",
                    "https://twitter.com/tv8",
                    "https://plus.google.com/+TV8Beraberiz",
                    "http://instagram.com/tv8"
                ]
            }
            </script><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="//img.tv8bucuk.com"><link rel="dns-prefetch" href="//ajax.googleapis.com"><link rel="dns-prefetch" href="//bs.serving-sys.com"><link rel="dns-prefetch" href="//cm.g.doubleclick.net"><link rel="dns-prefetch" href="//code.jquery.com"><link rel="dns-prefetch" href="//csi.gstatic.com"><link rel="dns-prefetch" href="//dmp.videogenetic.com"><link rel="dns-prefetch" href="//encrypted-tbn0.gstatic.com"><link rel="dns-prefetch" href="//encrypted-tbn1.gstatic.com"><link rel="dns-prefetch" href="//encrypted-tbn2.gstatic.com"><link rel="dns-prefetch" href="//fonts.googleapis.com"><link rel="dns-prefetch" href="//fonts.gstatic.com"><link rel="dns-prefetch" href="//mc.yandex.ru"><link rel="dns-prefetch" href="//dis.criteo.com"><link rel="dns-prefetch" href="//bbnaut.ibillboard.com"><link rel="dns-prefetch" href="//pagead2.googlesyndication.com"><link rel="dns-prefetch" href="//scripts.linkz.net"><link rel="author" href="https://plus.google.com/+TV8Beraberiz" /><link rel="publisher" href="https://plus.google.com/+TV8Beraberiz" /><link type="text/css" rel="stylesheet" href="https://www.tv8bucuk.com/s/template/v2/css/all.min.css?v=618"><script type="text/javascript">
            var SITE_URL    = 'https://www.tv8bucuk.com/';
            var AJAX_URL    = 'https://www.tv8bucuk.com/Ajax/';
            var CDN_URL     = 'https://www.tv8bucuk.com/s/';
            var UPLOAD_URL  = 'https://www.tv8bucuk.com/';
            var STATIC_URL  = 'https://www.tv8bucuk.com/s/template/v2/';
            var VERSION  = '618';
        </script><script src="https://www.tv8bucuk.com/s/template/v2/js/jquery.min.js?v=618"></script><script type="text/javascript">
            var currentUrl = window.location.href;
        </script><script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    
            ga('create', 'UA-85357416-1', 'auto');
            ga('send', 'pageview');
    
        </script><script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter40063360 = new Ya.Metrika({ id:40063360, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script><noscript><div><img src="https://mc.yandex.ru/watch/40063360" style="position:absolute; left:-9999px;" alt="" /></div></noscript
    
    
        <link rel="manifest" href="https://www.tv8bucuk.com/manifest.json" crossorigin="use-credentials"><link rel="stylesheet" href="https://www.tv8bucuk.com/s/template/v2/css/push.css?v=618"><script type="text/javascript" src="https://www.tv8bucuk.com/s/template/v2/js/pushmanager.js?v=618"></script></head><body><div class="megamasthead" style="text-align: center; position: relative;"><!-- masthead --></div><div id="header" class="fixedsticky"><div class="navbar tv8-navbar"><div class="container"><!-- Brand and toggle get grouped for better mobile display --><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1" aria-expanded="false"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="navbar-brand tv8-logo" href="https://www.tv8bucuk.com/"><img src="https://www.tv8bucuk.com/s/template/v2/img/tv8bucuk_logo.png" alt=""></a></div><!-- Collect the nav links, forms, and other content for toggling --><div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"><ul class="nav navbar-nav"><li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                   aria-haspopup="true" aria-expanded="false" title="Programlar">Programlar</a><div class="dropdown-menu row"><div class="col-lg-8 col-md-8 col-sm-8"><div class="row"><div class="col-lg-6 col-md-6 col-sm6"><ul class="clearfix"><li><a href="https://www.tv8bucuk.com/son-karar"                                                            data-image="uploads/kategoriler/2022/08/09/son-karar_kategori_menu_213251902362f233d205181.jpg"
                                                               data-title="SON KARAR"
                                                               data-text1=""
                                                               data-text2="" title="SON KARAR">
                                                                SON KARAR
                                                            </a></li></ul></div><div class="col-lg-6 col-md-6 col-sm6"><ul class="clearfix"><li><a href="https://www.tv8bucuk.com/dakika-skor"                                                            data-image="uploads/kategoriler/2022/08/09/dakika-skor_kategori-menu_86207713962f23654a7847.jpg"
                                                               data-title="DAKİKA SKOR"
                                                               data-text1=""
                                                               data-text2="" title="DAKİKA SKOR">
                                                                DAKİKA SKOR
                                                            </a></li><li><a href="https://www.tv8bucuk.com/100-futbol"                                                            data-image="uploads/kategoriler/2022/08/09/kategori-menu_yuzde-yuz_159976294762f23c7f147ec.jpg"
                                                               data-title="%100 FUTBOL"
                                                               data-text1=""
                                                               data-text2="" title="%100 FUTBOL">
                                                                %100 FUTBOL
                                                            </a></li></ul></div></div></div><div class="col-lg-4 col-md-4 col-sm-4 menuPhotoBoxWrapper"><div class="menuPhotoBox"><img width="270" height="323" src="https://www.tv8bucuk.com/uploads/kategoriler/2022/08/09/son-karar_kategori_menu_213251902362f233d205181.jpg" class="img-responsive" alt=""><h4>SON KARAR</h4><p><strong></strong><span></span></p></div></div></div></li><li><a rel="nofollow" href="/frekans-bilgileri"  title="Frekans Bilgileri">Frekans Bilgileri</a></li><li><a rel="nofollow" href="/yayin-akisi"  title="Yayın Akışı">Yayın Akışı</a></li><li><a rel="nofollow" href="/tv8-5-canli-yayin"  title="TV8,5 Canlı Yayın">TV8,5 Canlı Yayın</a></li></ul></div><!-- /.navbar-collapse --></div><!-- /.container-fluid --></div></div><div class="container"><div class="notFoundContent"><div class="notFoundTextBox"><p>404 - Aradığınız Sayfa Bulunumadı</p></div><div class="row"><div class="col-lg-12 notFoundText2">İsterseniz aşağıdaki bağlantılardan devam edebilirsiniz</div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/survivor"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/survivor-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/o-ses-turkiye"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/o-ses-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/goz6"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/goz-6-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/yetenek-sizsiniz"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/yetenek-1.jpg"></a></div></div></div></div><div id="footer" class="home-footer"><div class="footer-menu"><div class="container"><div class="row"><div class="col-lg-3 col-md-3"><h3>TV8,5</h3><ul class="footer-links"><li><a href="https://www.tv8bucuk.com/" title="TV8,5">TV8,5</a></li><li><a href="https://www.tv8bucuk.com/sayfa-izleyici-temsilcisi" title="İzleyici Temsilcisi">İzleyici Temsilcisi</a></li><li><a href="https://www.tv8bucuk.com/sayfa-iletisim" title="İletişim">İletişim</a></li><li><a href="https://www.tv8bucuk.com/sayfa-insan-kaynaklari" title="İnsan Kaynakları">İnsan Kaynakları</a></li><li><a href="https://www.tv8bucuk.com/frekans-bilgileri" title="Frekans Bilgileri">Frekans Bilgileri</a></li><li><a href="https://www.tv8bucuk.com/tv8-5-canli-yayin" title="TV8,5 Canlı Yayın">TV8,5 Canlı Yayın</a></li><li><a href="https://www.tv8bucuk.com/sayfa-kullanim-ve-gizlilik-sartlari-kisisel-verilerin-korunmasina-iliskin-bilgilendirme" title="Kullanım ve Gizlilik Şartları / Kişisel Verilerin Korunmasına İlişkin Bilgilendirme">Kullanım ve Gizlilik Şartları / Kişisel Verilerin Korunmasına İlişkin Bilgilendirme</a></li></ul></div><div class="col-lg-3 col-md-3"><h3 class="footer-bold-title">TV8,5'i Takip Edin</h3><div class="footer-social"><a rel="nofollow" href="https://www.facebook.com/TV8bucuk" target="_blank" class="bg-blue" title="TV8,5 Facebook"><i class="fa fa-facebook"></i></a><a rel="nofollow" href="https://twitter.com/TV8bucuk" target="_blank" class="bg-aqua" title="TV8,5 Twitter"><i class="fa fa-twitter"></i></a><a rel="nofollow" href="http://instagram.com/TV8bucuk" target="_blank" class="bg-grey" title="TV8,5 Instagram"><i class="fa fa-instagram"></i></a></div></div></div></div></div></div><script src="https://www.tv8bucuk.com/s/template/v2/js/all.min.js?v=618"></script><script>
        $(function() {
            if (localStorage.getItem('cookiepolicy')==null) {
                $('#cookie-policy').css('display','block');
            }
    
            $('#cookie-policy span.close').click(function() {
                localStorage.setItem('cookiepolicy', '1');
                $('#cookie-policy').css('display','none');
            });
        });
    </script><style>
        .cookie-notification {display:none;position: fixed;bottom: 0;left: 0;background-color: rgba(0,0,0,0.8);z-index: 999;width: 100%;font-weight: 400;color: #fff;font-size: 12px;line-height: 14px;}
        .cookie-notification .wrapper {text-align: center;padding: 9px 34px;}
        .cookie-notification a {color:#fff; text-decoration: underline}
        .cookie-notification .close {opacity:1;color:#fff;display: inline-block;background-position: -766px -343px;font-size: 18px;vertical-align: middle;cursor: pointer;position: absolute;right: 13px;top: 9px;}
    </style><div id="cookie-policy" class="cookie-notification"><div class="wrapper"><p class="cookie-message">Sitemizden en iyi şekilde faydalanabilmeniz için tanımlama bilgileri kullanılmaktadır.Bu siteye giriş yaparak tanımlama bilgileri kullanımını kabul etmiş sayılıyorsunuz. <a href="https://www.tv8bucuk.com/sayfa-kullanim-ve-gizlilik-sartlari-kisisel-verilerin-korunmasina-iliskin-bilgilendirme" class="cookie-more" target="_blank">Daha fazla bilgi için</a></p><span class="close"><i class="fa fa-close"></i></span></div></div><div class="acunn-push" style="bottom:-80px"><div class="acunn"><div class="acunn-wrapper"><div class="acunn-content"><div class="acunn-close">×</div><div class="acunn-bell"></div><div class="acunn-textWrapper"><div class="acunn-text"><strong>Son gelişmelerden anlık haberdar olabilirsiniz.</strong><p>
                tv8bucuk.com Bildirim ile, web sitesine girmeden de haberleri takip edebilirsiniz.
    </p></div><div class="acunn-buttonWrapper"><button class="acunn-button">Beni Haberdar Et</button></div></div></div></div></div></div></body></html>"
  • 22-08-2022, 15:00:09
    #6
    Üyeliği durduruldu
    codev adlı üyeden alıntı: mesajı görüntüle
    function curl($url, $post=false)
    {
        $user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6';
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, $post ? true : false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post ? $post : false);
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        $icerik = curl_exec($ch);
        curl_close($ch);
        return $icerik;
    }
    var_dump(curl('https://www.tv8bucuk.com/tv8-5-canli-yayin'));
    Kodu çalıştırdığımda aldığım yanıt;

    string(13310) "<!DOCTYPE html><html lang="tr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title></title><meta name="description" content=" 22-08-2022"/><meta name="keywords" content=", haber, haberler, tv8"/><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="robots" content="index, follow" /><link rel="icon" href="/favicon.ico?v=2" type="image/x-icon"><link title="" rel="alternate" type="application/rss+xml" href="https://www.tv8bucuk.com/rss" /><script data-schema="organization" type="application/ld+json">
            {
                "@context" : "http://schema.org",
                "@type" : "Organization",
                "name" : "Tv8,5",
                "url" : "http://www.tv8bucuk.com/",
                "logo" : "http:s://www.tv8bucuk.com/s/template/v2/images/logo.png",
                "sameAs" : [
                    "https://www.facebook.com/TV8",
                    "https://twitter.com/tv8",
                    "https://plus.google.com/+TV8Beraberiz",
                    "http://instagram.com/tv8"
                ]
            }
            </script><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="//img.tv8bucuk.com"><link rel="dns-prefetch" href="//ajax.googleapis.com"><link rel="dns-prefetch" href="//bs.serving-sys.com"><link rel="dns-prefetch" href="//cm.g.doubleclick.net"><link rel="dns-prefetch" href="//code.jquery.com"><link rel="dns-prefetch" href="//csi.gstatic.com"><link rel="dns-prefetch" href="//dmp.videogenetic.com"><link rel="dns-prefetch" href="//encrypted-tbn0.gstatic.com"><link rel="dns-prefetch" href="//encrypted-tbn1.gstatic.com"><link rel="dns-prefetch" href="//encrypted-tbn2.gstatic.com"><link rel="dns-prefetch" href="//fonts.googleapis.com"><link rel="dns-prefetch" href="//fonts.gstatic.com"><link rel="dns-prefetch" href="//mc.yandex.ru"><link rel="dns-prefetch" href="//dis.criteo.com"><link rel="dns-prefetch" href="//bbnaut.ibillboard.com"><link rel="dns-prefetch" href="//pagead2.googlesyndication.com"><link rel="dns-prefetch" href="//scripts.linkz.net"><link rel="author" href="https://plus.google.com/+TV8Beraberiz" /><link rel="publisher" href="https://plus.google.com/+TV8Beraberiz" /><link type="text/css" rel="stylesheet" href="https://www.tv8bucuk.com/s/template/v2/css/all.min.css?v=618"><script type="text/javascript">
            var SITE_URL    = 'https://www.tv8bucuk.com/';
            var AJAX_URL    = 'https://www.tv8bucuk.com/Ajax/';
            var CDN_URL     = 'https://www.tv8bucuk.com/s/';
            var UPLOAD_URL  = 'https://www.tv8bucuk.com/';
            var STATIC_URL  = 'https://www.tv8bucuk.com/s/template/v2/';
            var VERSION  = '618';
        </script><script src="https://www.tv8bucuk.com/s/template/v2/js/jquery.min.js?v=618"></script><script type="text/javascript">
            var currentUrl = window.location.href;
        </script><script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    
            ga('create', 'UA-85357416-1', 'auto');
            ga('send', 'pageview');
    
        </script><script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter40063360 = new Ya.Metrika({ id:40063360, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script><noscript><div><img src="https://mc.yandex.ru/watch/40063360" style="position:absolute; left:-9999px;" alt="" /></div></noscript
    
    
        <link rel="manifest" href="https://www.tv8bucuk.com/manifest.json" crossorigin="use-credentials"><link rel="stylesheet" href="https://www.tv8bucuk.com/s/template/v2/css/push.css?v=618"><script type="text/javascript" src="https://www.tv8bucuk.com/s/template/v2/js/pushmanager.js?v=618"></script></head><body><div class="megamasthead" style="text-align: center; position: relative;"><!-- masthead --></div><div id="header" class="fixedsticky"><div class="navbar tv8-navbar"><div class="container"><!-- Brand and toggle get grouped for better mobile display --><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1" aria-expanded="false"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="navbar-brand tv8-logo" href="https://www.tv8bucuk.com/"><img src="https://www.tv8bucuk.com/s/template/v2/img/tv8bucuk_logo.png" alt=""></a></div><!-- Collect the nav links, forms, and other content for toggling --><div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"><ul class="nav navbar-nav"><li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                   aria-haspopup="true" aria-expanded="false" title="Programlar">Programlar</a><div class="dropdown-menu row"><div class="col-lg-8 col-md-8 col-sm-8"><div class="row"><div class="col-lg-6 col-md-6 col-sm6"><ul class="clearfix"><li><a href="https://www.tv8bucuk.com/son-karar"                                                            data-image="uploads/kategoriler/2022/08/09/son-karar_kategori_menu_213251902362f233d205181.jpg"
                                                               data-title="SON KARAR"
                                                               data-text1=""
                                                               data-text2="" title="SON KARAR">
                                                                SON KARAR
                                                            </a></li></ul></div><div class="col-lg-6 col-md-6 col-sm6"><ul class="clearfix"><li><a href="https://www.tv8bucuk.com/dakika-skor"                                                            data-image="uploads/kategoriler/2022/08/09/dakika-skor_kategori-menu_86207713962f23654a7847.jpg"
                                                               data-title="DAKİKA SKOR"
                                                               data-text1=""
                                                               data-text2="" title="DAKİKA SKOR">
                                                                DAKİKA SKOR
                                                            </a></li><li><a href="https://www.tv8bucuk.com/100-futbol"                                                            data-image="uploads/kategoriler/2022/08/09/kategori-menu_yuzde-yuz_159976294762f23c7f147ec.jpg"
                                                               data-title="%100 FUTBOL"
                                                               data-text1=""
                                                               data-text2="" title="%100 FUTBOL">
                                                                %100 FUTBOL
                                                            </a></li></ul></div></div></div><div class="col-lg-4 col-md-4 col-sm-4 menuPhotoBoxWrapper"><div class="menuPhotoBox"><img width="270" height="323" src="https://www.tv8bucuk.com/uploads/kategoriler/2022/08/09/son-karar_kategori_menu_213251902362f233d205181.jpg" class="img-responsive" alt=""><h4>SON KARAR</h4><p><strong></strong><span></span></p></div></div></div></li><li><a rel="nofollow" href="/frekans-bilgileri"  title="Frekans Bilgileri">Frekans Bilgileri</a></li><li><a rel="nofollow" href="/yayin-akisi"  title="Yayın Akışı">Yayın Akışı</a></li><li><a rel="nofollow" href="/tv8-5-canli-yayin"  title="TV8,5 Canlı Yayın">TV8,5 Canlı Yayın</a></li></ul></div><!-- /.navbar-collapse --></div><!-- /.container-fluid --></div></div><div class="container"><div class="notFoundContent"><div class="notFoundTextBox"><p>404 - Aradığınız Sayfa Bulunumadı</p></div><div class="row"><div class="col-lg-12 notFoundText2">İsterseniz aşağıdaki bağlantılardan devam edebilirsiniz</div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/survivor"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/survivor-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/o-ses-turkiye"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/o-ses-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/goz6"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/goz-6-1.jpg"></a></div><div class="col-lg-3 col-md-3 col-sm-3 margin-bottom-20"><a href="https://www.tv8bucuk.com/yetenek-sizsiniz"><img class="img-responsive" title="" alt="" src="https://www.tv8bucuk.com/s/template/v2/img/arama/yetenek-1.jpg"></a></div></div></div></div><div id="footer" class="home-footer"><div class="footer-menu"><div class="container"><div class="row"><div class="col-lg-3 col-md-3"><h3>TV8,5</h3><ul class="footer-links"><li><a href="https://www.tv8bucuk.com/" title="TV8,5">TV8,5</a></li><li><a href="https://www.tv8bucuk.com/sayfa-izleyici-temsilcisi" title="İzleyici Temsilcisi">İzleyici Temsilcisi</a></li><li><a href="https://www.tv8bucuk.com/sayfa-iletisim" title="İletişim">İletişim</a></li><li><a href="https://www.tv8bucuk.com/sayfa-insan-kaynaklari" title="İnsan Kaynakları">İnsan Kaynakları</a></li><li><a href="https://www.tv8bucuk.com/frekans-bilgileri" title="Frekans Bilgileri">Frekans Bilgileri</a></li><li><a href="https://www.tv8bucuk.com/tv8-5-canli-yayin" title="TV8,5 Canlı Yayın">TV8,5 Canlı Yayın</a></li><li><a href="https://www.tv8bucuk.com/sayfa-kullanim-ve-gizlilik-sartlari-kisisel-verilerin-korunmasina-iliskin-bilgilendirme" title="Kullanım ve Gizlilik Şartları / Kişisel Verilerin Korunmasına İlişkin Bilgilendirme">Kullanım ve Gizlilik Şartları / Kişisel Verilerin Korunmasına İlişkin Bilgilendirme</a></li></ul></div><div class="col-lg-3 col-md-3"><h3 class="footer-bold-title">TV8,5'i Takip Edin</h3><div class="footer-social"><a rel="nofollow" href="https://www.facebook.com/TV8bucuk" target="_blank" class="bg-blue" title="TV8,5 Facebook"><i class="fa fa-facebook"></i></a><a rel="nofollow" href="https://twitter.com/TV8bucuk" target="_blank" class="bg-aqua" title="TV8,5 Twitter"><i class="fa fa-twitter"></i></a><a rel="nofollow" href="http://instagram.com/TV8bucuk" target="_blank" class="bg-grey" title="TV8,5 Instagram"><i class="fa fa-instagram"></i></a></div></div></div></div></div></div><script src="https://www.tv8bucuk.com/s/template/v2/js/all.min.js?v=618"></script><script>
        $(function() {
            if (localStorage.getItem('cookiepolicy')==null) {
                $('#cookie-policy').css('display','block');
            }
    
            $('#cookie-policy span.close').click(function() {
                localStorage.setItem('cookiepolicy', '1');
                $('#cookie-policy').css('display','none');
            });
        });
    </script><style>
        .cookie-notification {display:none;position: fixed;bottom: 0;left: 0;background-color: rgba(0,0,0,0.8);z-index: 999;width: 100%;font-weight: 400;color: #fff;font-size: 12px;line-height: 14px;}
        .cookie-notification .wrapper {text-align: center;padding: 9px 34px;}
        .cookie-notification a {color:#fff; text-decoration: underline}
        .cookie-notification .close {opacity:1;color:#fff;display: inline-block;background-position: -766px -343px;font-size: 18px;vertical-align: middle;cursor: pointer;position: absolute;right: 13px;top: 9px;}
    </style><div id="cookie-policy" class="cookie-notification"><div class="wrapper"><p class="cookie-message">Sitemizden en iyi şekilde faydalanabilmeniz için tanımlama bilgileri kullanılmaktadır.Bu siteye giriş yaparak tanımlama bilgileri kullanımını kabul etmiş sayılıyorsunuz. <a href="https://www.tv8bucuk.com/sayfa-kullanim-ve-gizlilik-sartlari-kisisel-verilerin-korunmasina-iliskin-bilgilendirme" class="cookie-more" target="_blank">Daha fazla bilgi için</a></p><span class="close"><i class="fa fa-close"></i></span></div></div><div class="acunn-push" style="bottom:-80px"><div class="acunn"><div class="acunn-wrapper"><div class="acunn-content"><div class="acunn-close">×</div><div class="acunn-bell"></div><div class="acunn-textWrapper"><div class="acunn-text"><strong>Son gelişmelerden anlık haberdar olabilirsiniz.</strong><p>
                tv8bucuk.com Bildirim ile, web sitesine girmeden de haberleri takip edebilirsiniz.
    </p></div><div class="acunn-buttonWrapper"><button class="acunn-button">Beni Haberdar Et</button></div></div></div></div></div></div></body></html>"

    Teşekkür ederim hocam şöyle bir yapi hazırlamıştım burda neden çalışmıyor olabilir hangi siteyi yazarsam yazayim titleyi çekiyor bu kod ile tek bu sitede çekmiyor
  • 22-08-2022, 15:07:58
    #7
    mertaktas adlı üyeden alıntı: mesajı görüntüle
    Teşekkür ederim hocam şöyle bir yapi hazırlamıştım burda neden çalışmıyor olabilir hangi siteyi yazarsam yazayim titleyi çekiyor bu kod ile tek bu sitede çekmiyor
    Direkt olarak curl'den dönen site yanıtına bakarsanız <title></title> title etiketi boş geliyor. Sitenin kendi kaynağına baktığımızda bu etiket dolu ancak curl'e niye boş geldiğine bakmak lazım. Eksik header parametreleri varsa onları göndermeniz gerekir.
  • 23-08-2022, 00:54:57
    #8
    Curl fonksiyonu bununla değiştirin.

    function Curlz($url)
    {
    $header[0] = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
    $header[] = 'Cache-Control: max-age=0';
    $header[] = 'Connection: keep-alive';
    $header[] = 'Keep-Alive: 300';
    $header[] = 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7';
    $header[] = 'Accept-Language: en-us,en;q=0.5';
    $header[] = 'Pragma:';
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com/');
    curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
    curl_setopt($curl, CURLOPT_AUTOREFERER, true);
    curl_setopt($curl, CURLOPT_TIMEOUT, 10);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $body = curl_exec($curl);
    curl_close($curl);
    return $body;
    }


    Mobilden yazıyorum kod hatalı çıkabilir düzenleyiniz.