PHPackages                             juliusgeorge/instascrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. juliusgeorge/instascrapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

juliusgeorge/instascrapper
==========================

A PHP package for scraping Instagram data.

v1.0.1(1y ago)07MITPHP

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/juliusgeorge12/instascrapper)[ Packagist](https://packagist.org/packages/juliusgeorge/instascrapper)[ RSS](/packages/juliusgeorge-instascrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Instagram Scraper
=================

[](#instagram-scraper)

Overview
--------

[](#overview)

This project is an Instagram scraper designed to extract publicly available data from Instagram profiles, posts, and other accessible endpoints. It is intended for educational and research purposes only.

Features
--------

[](#features)

- Extract post details (captions, likes, comments, etc.).

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Required libraries (install via `requirements.txt`):
    - `illuminate\container`
    - `guzzlehttp`
    - `php-webdriver\webdriver`

Installation
------------

[](#installation)

1. With composer: ```
    composer require juliusgeorge/instascrapper
    ```

Usage
-----

[](#usage)

This package requires you to authenticate with instagram There are two ways of doing that

1. Via cookie Login to instagram grab the required cookies (rur,mid,sessionid,ig\_id,ds\_user\_id,csrftoken) create an array of cookiename/value pair i.e

    ```
    [
        'rur' => 'rur value',
        'csrftoken' => 'csrftoken value',
        'mid' => 'mid value',
        'ig_id' => 'ig_id value',
        'ds_user_id' => 'ds_user_id value',
        'sessionid' => 'sessionid value'
    ]
    ```

    after that call the generateAuthCookie static method of the InstaAuth\\Auth class use InstaAuth\\Auth;

    ```
    $cookieAuth = Auth::generateCookieAuth($the_array)
    ```

    Authenticate the scrapper using

    ```
    Scrapper::cookieAuth($cookieAuth);
    ```

    you can also generate a cookie auth token by providing your password and email|username

    ```
    $auth = new Auth();
    $cookieAuth = $auth->login('your email|username', 'your password');
    ```

    use the cookie auth like in above step to authenticate
2. Scrapping comments: Before scrapping you need to authenticate, you can do that using the steps above Scrapping comments is pretty straight forward:

    ```
    use InstaAuth\Auth;
    use InstaScrapper\Scrapper;
    use InstaScrapper\CommentScrapper;

    //authenticate the scrapper, we will be using cookie authentication here
    $cookie = [
        'rur' => 'rur value',
        'csrftoken' => 'csrftoken value',
        'mid' => 'mid value',
        'ig_id' => 'ig_id value',
        'ds_user_id' => 'ds_user_id value',
        'sessionid' => 'sessionid value'
    ]
    Scrapper::cookieAuth(Auth::generateCookieAuth($cookie));
    $commentScrapper = new CommentScrapper();
    //pass in data to the comment scrapper using the with method
    $commentScrapper->with([
        'shortcode' => 'the instagram post shortcode',
        'max_comment' => 'maximum number of comment to scrape'
    ]);
    $comments = $commentScrapper->scrape();
    ```

Disclaimer
----------

[](#disclaimer)

This project is for educational purposes only. Scraping data from Instagram may violate their terms of service. Use responsibly and ensure compliance with applicable laws and regulations.

License
-------

[](#license)

This project is licensed under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance52

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Total

2

Last Release

365d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddb5ef81fca6e89398fca9d4e41da8e70f6fe1923a8292046536d837cca6974d?d=identicon)[Julius George](/maintainers/Julius%20George)

---

Top Contributors

[![juliusgeorge12](https://avatars.githubusercontent.com/u/106617931?v=4)](https://github.com/juliusgeorge12 "juliusgeorge12 (11 commits)")

### Embed Badge

![Health badge](/badges/juliusgeorge-instascrapper/health.svg)

```
[![Health](https://phpackages.com/badges/juliusgeorge-instascrapper/health.svg)](https://phpackages.com/packages/juliusgeorge-instascrapper)
```

###  Alternatives

[ashallendesign/laravel-executor

Configurable code that can be ran when installing or updating your web app.

2573.0k](/packages/ashallendesign-laravel-executor)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
