merhabalar arkadaşlar bu şekilde geliyor eskiden file_get_content ile çekiliyordu şimdi nasıl çekebilirim(api kullanmak istemiyorum)
teşekkürler
7
●116
<?php
$res = file_get_contents("https://www.instagram.com/kullaniciadi/?__a=1");
$json = json_decode($res);
$image_url = $json->graphql->user->profile_pic_url; // thumbnail
$image_url = $json->graphql->user->profile_pic_url_hd; // yüksek kaliteli
?>
İşte böyle :<?php
$kullanici_adi = htmlspecialchars($_GET["username"]);
$res = file_get_contents("https://www.instagram.com/".$kullanici_adi."/?__a=1");
$json = json_decode($res);
$image_url = $json->graphql->user->profile_pic_url_hd;
$image = base64_encode(file_get_contents($image_url));
?>
<img src="data:image/png;base64,<?php echo $image; ?>">