downace / instagram-php-scraper
Instagram PHP Scraper. Get account information, photos and videos without any authorization
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 439
pkg:composer/downace/instagram-php-scraper
Requires
- php: >=5.6.0
- ext-json: *
- phpfastcache/phpfastcache: 5.0.*
Requires (Dev)
- phpunit/phpunit: 5.5.*
Suggests
- guzzlehttp/guzzle: HTTP client
- mashape/unirest-php: HTTP client
- dev-master
- v1.0.0-RC1
- v0.8.21
- v0.8.20
- v0.8.19
- v0.8.18
- v0.8.17
- v0.8.16
- v0.8.15
- v0.8.14
- v0.8.13
- v0.8.12
- v0.8.11
- v0.8.10
- v0.8.9
- v0.8.8
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.1
- v0.6.0
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.5
- v0.3.4
- 0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-http-agnostic
This package is auto-updated.
Last update: 2020-02-17 10:39:11 UTC
README
This package is abandoned. Use original postaddictme/instagram-php-scraper
This is the fork of postaddictme/instagram-php-scraper repo.
Description from original:
This library based on Instagram web version. We develop it because nowadays it is hard to get approved Instagram application. The purpose support every feature that web desktop and mobile version support.
Fork Information
This fork provides ability to specify custom HTTP client for handling requests.
Clients for guzzlehttp/guzzle and
mashape/unirest-php are included.
Also, proxy methods are removed from Instagram class: proxy should be configured for HTTP client
(following the principle of separation of concerns)
Installation
Using composer
composer require downace/instagram-php-scraper
If you don't have composer
You can download it here.
Examples
You can see examples of using original library here.
With Unirest (mashape/unirest-php is required):
$insta = new Instagram(new \InstagramScraper\HttpClient\UnirestClient());
With Guzzle (guzzlehttp/guzzle is required):
// \GuzzleHttp\Client with default options will be used $insta = new Instagram(new \InstagramScraper\HttpClient\GuzzleClient()); // You can provide options for \GuzzleHttp\Client constructor $insta = new Instagram(new \InstagramScraper\HttpClient\GuzzleClient([ 'timeout' => 5 ])); // Or pass your own instance of \GuzzleHttp\ClientInterface: $insta = new Instagram(new \InstagramScraper\HttpClient\GuzzleClient($myClient));
Using proxy:
// With Guzzle. $insta = new Instagram(new \InstagramScraper\HttpClient\GuzzleClient([ 'proxy' => 'http://user:pass@localhost:8125' ])); // With Unirest Request::proxy('localhost', 8125, CURLPROXY_HTTP); Request::proxyAuth('user', 'pass'); $insta = new Instagram(new \InstagramScraper\HttpClient\UnirestClient());