This package is designed to do simple Instagram Crawler in Laravel framework.
This package based on this repository Smochin/instagram-php-crawler.
Because this package has not been updated for more than 2 years, we make a copy and do some changes about updated instagram's data.
This package is still in alpha version, so the update may broke your application.
Package is available on Packagist, you can install it using Composer.
composer require konnco/laravel-instagram-crawler
- PHP 7
- json extension
- cURL extension
$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');
we appreciate all contributions, feel free to write some code or request package.