Download the PHP package ravelinodecastro/instagram-php-scraper without Composer
On this page you can find all versions of the php package ravelinodecastro/instagram-php-scraper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ravelinodecastro/instagram-php-scraper
More information about ravelinodecastro/instagram-php-scraper
Files in ravelinodecastro/instagram-php-scraper
Package instagram-php-scraper
Short Description Instagram PHP Scraper. Get account information, photos and videos without any authorization
License MIT
Homepage https://github.com/raiym/instagram-php-scraper
Informations about the package instagram-php-scraper
Instagram PHP Scraper (Using any Proxy API)
This library is based on the postaddictme and restyler libary versions. The difference is that my version can be associated with any proxy API. I've decided to build this version, because the restyler version was giving this message: "You have exceeded the MONTHLY quota for Requests on your current plan, BASIC." and it can only work with one proxy API and the postaddictme version do not allow us to use a proxy API directly.
Dependencies
Only these methods can use proxy API because they do not require authentication:
- getAccount()
- getAccountById()
- getMedias()
- getMediasByTag()
- getMediaByUrl()
- getMediaByCode()
Exemple using restyler's Rapid Api (Click here to subscribe on his Proxy API)
Exemple using scraperapi (Click here to subscribe on his Proxy API)
Other methods that can be used in this libary are:
- getProxyApiUrl('string') : used to check and check if your Proxy API url is set
- clearProxyApiUrl() : to clear the previous url set if you don't want to make request with proxy API anymore
- setHeaders($array): is used to set headers, in case you want add them in your proxy API Request
From here, all the rest is just the same as it is on postaddictme library
Code Example
Some methods do not require authentication:
If you use authentication it is recommended to cache the user session. In this case you don't need to run the $instagram->login()
method every time your program runs:
Using proxy for requests:
Installation
Using composer
or
If you don't have composer
You can download it here.
Examples
See examples here.
Other
Java library: https://github.com/postaddictme/instagram-java-scraper
All versions of instagram-php-scraper with dependencies
ext-curl Version *
ext-json Version *
psr/simple-cache Version ~1.0
psr/http-client Version ~1.0
guzzlehttp/psr7 Version ^1.7