PHP code example of konnco / laravel-instagram-crawler

1. Go to this page and download the library: Download konnco/laravel-instagram-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/ */

    

konnco / laravel-instagram-crawler example snippets


$crawler = new Konnco\InstagramCrawler\InstagramCrawler();

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

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

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

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

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

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

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

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

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

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