Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getPublicInfo($username) {
- $url = sprintf("https://www.instagram.com/$username");
- $content = file_get_contents($url);
- $content = explode("window._sharedData = ", $content)[1];
- $content = explode(";</script>", $content)[0];
- $data = json_decode($content, true);
- return $data['entry_data']['ProfilePage'][0];
- }
Add Comment
Please, Sign In to add comment