Skip to content

Instantly share code, notes, and snippets.

View hayalolsam's full-sized avatar
🏠
Working from home

hayalolsam

🏠
Working from home
View GitHub Profile
@tayfunerbilen
tayfunerbilen / php-instagram-info.php
Created February 14, 2023 11:25
instagram kullanici bilgileri ve son postlari alan kod
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://www.instagram.com/' . $_GET['username'] . '/embed/',
CURLOPT_USERAGENT => 'Mozilla/5.0 (Linux; Android 6.0.1; SM-G935S Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36',
CURLOPT_RETURNTRANSFER => true
]);
$output = curl_exec($ch);
curl_close($ch);