Arillo\InstagramScraper\Crawler
This class provides an access api to public Instagram data.
- Author: bumbus <sf@arillo.net>
Synopsis
class Crawler
{
- // constants
- const BASE_URI = 'https://www.instagram.com';
- const QUERY = ;
- const TAG_ENDPOINT = '/explore/tags/%s';
- const LOCATION_ENDPOINT = '/explore/locations/%d';
- const USER_ENDPOINT = '/%s';
- const MEDIA_ENDPOINT = '/p/%s';
- // members
- private ClientInterface $client;
- // methods
- public static string media_url_by_shortcode()
- public void __construct()
- public array getByTag()
- public array getByUsername()
- public array getByLocation()
Constants
Name | Value |
---|---|
BASE_URI | 'https://www.instagram.com' |
QUERY | |
TAG_ENDPOINT | '/explore/tags/%s' |
LOCATION_ENDPOINT | '/explore/locations/%d' |
USER_ENDPOINT | '/%s' |
MEDIA_ENDPOINT | '/p/%s' |
Members
private
Methods
public
- __construct()
- getByLocation() — Get info by location (id)
- getByTag() — Get info by tag
- getByUsername() — Get info by username
- media_url_by_shortcode() — Returns a media url by shortcode for in-browser usage.