• 03-02-2022, 15:26:37
    #1
    https://www.instagram.com/explore/tags/fest/?__a=1

    bu linkte ki json veriyi nasıl listelerim?
  • 03-02-2022, 15:29:51
    #2
    instagrama login olmadan yapamazsınız malasef hocam
  • 03-02-2022, 15:44:05
    #3
    Developer
    Şu şekilde:

    <?php
    $datas = json_decode(file_get_contents('https://www.instagram.com/explore/tags/fest/?__a=1'),TRUE);
    
    echo '<pre>';
    var_dump($datas);
    echo '</pre>';
    ?>
  • 03-02-2022, 17:54:02
    #4
    function get($url){
        $curl = curl_init($url);
        curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Mobile Safari/537.36");
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($curl, CURLOPT_MAXREDIRS, 10);
        curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
        curl_setopt($curl, CURLOPT_REFERER, "https://www.google.com/");
        $curlResult = curl_exec($curl);
        curl_close($curl);
        return $curlResult;    
    }
    
    $json = get('https://www.instagram.com/explore/tags/fest/?__a=1');
    
    print_r(json_decode($json, true));