• 26-08-2022, 17:46:04
    #10
    LeftSoft adlı üyeden alıntı: mesajı görüntüle
    $agent = array(  'http'=>array(    'header'=>"User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53\r\n" ) );
    $context = stream_context_create($agent);
    $data = file_get_html("https://instagram.com/nike/ " , false, $context);
    <?php 
    
    require 'class.php';
    
    
    $agent = array(  'http'=>array(    'header'=>"User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53\r\n" ) );
    $context = stream_context_create($agent);
    $data = file_get_html("https://instagram.com/nike/ " , false, $context);
    
    $kapak = $data->find('img._aa8j');
    foreach($kapak as $newimage) {
    echo $thumb= $newimage->$property;
    }
    ?>
    yine cevapsız hocam
  • 26-08-2022, 17:48:24
    #11
    oguzhanss adlı üyeden alıntı: mesajı görüntüle
    <?php
    
    require 'class.php';
    
    
    $agent = array(  'http'=>array(    'header'=>"User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53\r\n" ) );
    $context = stream_context_create($agent);
    $data = file_get_html("https://instagram.com/nike/ " , false, $context);
    
    $kapak = $data->find('img._aa8j');
    foreach($kapak as $newimage) {
    echo $thumb= $newimage->$property;
    }
    ?>
    yine cevapsız hocam
    sadece
    $data = file_get_html("https://instagram.com/nike/ " , false, $context);
    yerini echo ya alın bakalım yönlendirme alıyor olabilir.
  • 26-08-2022, 17:53:33
    #12
    Hocam bu işler API olmadan olmuyor, olsa bile sağlıklı olmuyor.