PHP code example of smochin / instagram-php-crawler

1. Go to this page and download the library: Download smochin/instagram-php-crawler library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

smochin / instagram-php-crawler example snippets


$crawler = new Smochin\Instagram\Crawler();

$media = $crawler->getMediaByTag('php');

$media = $crawler->getMediaByLocation(225963881);

$media = $crawler->getMediaByUser('instagram');

$media = $crawler->getMedia('0sR6OhmwCQ');

$user = $crawler->getUser('jamersonweb');

$location = $crawler->getLocation(225963881);

$tag = $crawler->getTag('php');

$result = $crawler->search('recife');
shell
composer