smochin/instagram-php-crawler

A simple PHP Crawler for Instagram

1.0.1 2018-03-14 18:34 UTC

This package is auto-updated.

Last update: 2024-11-07 19:39:09 UTC


README

Join the chat at https://gitter.im/smochin/instagram-php-crawler Total Downloads Latest Stable Version Branch master Build Status

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');