smochin / instagram-php-crawler
A simple PHP Crawler for Instagram
Installs: 6 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 46
Watchers: 9
Forks: 17
Open Issues: 2
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-07 19:39:09 UTC
README
A simple PHP Crawler for Instagram.
Installation
Package is available on Packagist, you can install it using Composer.
composer require smochin/instagram-php-crawler
Dependencies
- PHP 7
- json extension
- cURL extension
Get started
Initialize the Crawler
$crawler = new Smochin\Instagram\Crawler();
Get a list of recently tagged media
$media = $crawler->getMediaByTag('php');
Get a list of recent media from a given location
$media = $crawler->getMediaByLocation(225963881);
Get the most recent media published by a user
$media = $crawler->getMediaByUser('instagram');
Get information about a media
$media = $crawler->getMedia('0sR6OhmwCQ');
Get information about a user
$user = $crawler->getUser('jamersonweb');
Get information about a location
$location = $crawler->getLocation(225963881);
Get information about a tag
$tag = $crawler->getTag('php');
Search for hashtags, locations and users
$result = $crawler->search('recife');