<?php set_time_limit(0); function scrape_insta($username) { $insta_source = file_get_contents('http://instagram.com/'.$username.''); $shards = explode('window._sharedData = ', $insta_source); $insta_json = explode(';</script>', $shards[1]); $insta_array = json_decode($insta_json[0], TRUE); return $insta_array; } function BetweenStr($InputString, $StartStr, $EndStr=0, $StartLoc=0) { if (($StartLoc = strpos($InputString, $StartStr, $StartLoc)) === false) { return; } $StartLoc += strlen($StartStr); if (!$EndStr) { $EndStr = $StartStr; } if (!$EndLoc = strpos($InputString, $EndStr, $StartLoc)) { return; } return substr($InputString, $StartLoc, ($EndLoc-$StartLoc)); } function get_first_word($str) { return (preg_match('/(\S)*/', $str, $matches) ? $matches[0] : $str); } function getData($data,$startTag,$finishTag){ $data= explode($startTag,$data); $da...