Skip to content

Instantly share code, notes, and snippets.

@raiym
Created August 15, 2016 10:41
Show Gist options
  • Select an option

  • Save raiym/f9834e6921e41c39133a8f94dcbaefe2 to your computer and use it in GitHub Desktop.

Select an option

Save raiym/f9834e6921e41c39133a8f94dcbaefe2 to your computer and use it in GitHub Desktop.
<?php
error_reporting(-1);
require_once 'vendor/autoload.php';
require_once 'src/InstagramScraper.php';
use InstagramScraper\Exception\InstagramException;
use InstagramScraper\Instagram;
try {
$medias = Instagram::getMedias('kevin', 1497);
echo json_encode($medias[1497]);
} catch (\Exception $ex) {
print_r($ex);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment