Little php class for Instagram Scrapping.
Telegram Bot Demo @InstaTakerBot
Note :
Don't forgot to set your own Coockie in Script. [ Deprecated ]
$_COOKIE = '';Since version 3.0 release you don't need to manually set cookies data, just login or run test.php file
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use InstagramPHP\Login as InstagramPHPLogin;
$session = new InstagramPHPLogin(new Client(), 'user', 'pass');
$session->SessionLogin();In version 4.0 you can set variables in .env file instead of php source code.
Here is your environment variable table:
| Variable | Example Value | Description |
|---|---|---|
| PROXY_HOST | 127.0.0.1 | Proxy server hostname |
| PROXY_PORT | 8080 | Proxy server port |
| username | your_username | Instagram username |
| password | your_password | Instagram password |
First install composer on your system,then run:
composer installcd Instagram-Tools && php -S localhost:8000then open http://localhost:8000/ in browser,now you can use PWA in your local webserver.
- Return Account Info (Profile)
- Download Media
- Download Highlights
- Download Reels
- Download Story
Click to see changelogs.
- Now is be PWA
- Sadly instagram fully closed previous ( __a=1 ) method, so i used a newer one.
- Completely object oriented
- Codes rewrited from scratch
- All requests are now handled over Guzzle
- Fixed Highlight detection
- Now PWA can play carousel photos and videos
- some javascript bugs fixed
Note: this is final build for 2023
- Changed UserAgent somewhere
- Fixed login CSRF data
- Updated login ajax url
- New regex pattern for getting media id
- Bumped guzzle version to 7.8.1
- Fixed story scapping
- Some changes in Highlights regex pattern
- Returning post play count
- Bumped guzzle version to 7.9.2
- Fix of regex in getReelsID func
- Updated UserAgents
- Update Instagram android useragent
- Add proxy support and environment configuration for Instagram API
- Some code improvments.
Developer : Incognito Coder & Arash Ariaye
if you enjoy my content, consider to buy me a coffee here:
- Donate ZarinPal
- USDT(TRC20) :
TD5XNhZPuVoc6ZnadbrQenuur3WWKwkFqV - TRON(TRX) :
TD5XNhZPuVoc6ZnadbrQenuur3WWKwkFqV - TON(TON) :
UQBAL2lkifBy7H8-3M7khJXu8w2TqjvJ8tSbhFRkNAR_7mQJ