All Projects → postaddictme → Instagram Php Scraper

postaddictme / Instagram Php Scraper

Licence: mit
Get account information, photos, videos, stories and comments.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Instagram Php Scraper

Instagram-Auto-Pilot
Automate common Instagram activities such as following, unfollowing, commenting and reposting images from instagram accounts.
Stars: ✭ 50 (-97.99%)
Mutual labels:  instagram-client, instagram-scraper, instagram-api, instagram-sdk
Instagram Scraper
Scrapes an instagram user's photos and videos
Stars: ✭ 5,664 (+127.47%)
Mutual labels:  instagram-api, instagram, instagram-scraper, instagram-client
Instagram User Feed
This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
Stars: ✭ 435 (-82.53%)
Mutual labels:  instagram-api, instagram, instagram-scraper, instagram-client
Igql
Unofficial Instagram GraphQL API to collet data without authentication
Stars: ✭ 80 (-96.79%)
Mutual labels:  instagram-api, instagram, instagram-scraper, instagram-client
Instagramapisharp
A complete Private Instagram API for .NET (C#, VB.NET).
Stars: ✭ 486 (-80.48%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Inwidget
inWidget - free Instagram widget for your website. Allows you to show photos from an Instagram account, by hashtags and more.
Stars: ✭ 132 (-94.7%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Instabotai
Instagram AI bot with face detection. It works without instagram api, need only login and password.
Stars: ✭ 181 (-92.73%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Swiftinstagram
Instagram API client written in Swift
Stars: ✭ 570 (-77.11%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram Java Scraper
Instagram Java Scraper. Get account information, photos, videos and comments.
Stars: ✭ 335 (-86.55%)
Mutual labels:  instagram-api, instagram, instagram-client
Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (-80%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram4j
📷 Instagram private API in Java
Stars: ✭ 629 (-74.74%)
Mutual labels:  instagram-api, instagram, instagram-client
Instauto
Simple to use wrapper around the private Instagram API, written in Python.
Stars: ✭ 52 (-97.91%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Instasharper
Private Instagram API
Stars: ✭ 426 (-82.89%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Onegram
This repository is no longer maintained.
Stars: ✭ 137 (-94.5%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagramlive Php
A PHP script that allows for you to go live on Instagram with any streaming program that supports RTMP!
Stars: ✭ 362 (-85.46%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram Scraper Node
Scrapes an instagram user's photos and videos.
Stars: ✭ 52 (-97.91%)
Mutual labels:  instagram-api, instagram-scraper, instagram-client
Socialmanagertools Docs
📚 Documentation of Social Manager Tools
Stars: ✭ 151 (-93.94%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Instagram-Scraper-2021
Scrape Instagram content and stories anonymously, using a new technique based on the har file (No Token + No public API).
Stars: ✭ 57 (-97.71%)
Mutual labels:  instagram, instagram-scraper, instagram-api
Instamancer
Scrape Instagram's API with Puppeteer
Stars: ✭ 273 (-89.04%)
Mutual labels:  instagram-api, instagram, instagram-scraper
Socialmanagertools Igbot
🤖 📷 Instagram Bot made with love and nodejs
Stars: ✭ 699 (-71.93%)
Mutual labels:  instagram-api, instagram, instagram-scraper

Instagram PHP Scraper

This library is based on the Instagram web version. We develop it because nowadays it is hard to get an approved Instagram application. The purpose is to support every feature that the web desktop and mobile version support.

Dependencies

Code Example

use Phpfastcache\Helper\Psr16Adapter;

$instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'username', 'password', new Psr16Adapter('Files'));
$instagram->login();
$account = $instagram->getAccountById(3);
echo $account->getUsername();

Some methods do not require authentication:

$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client());
$nonPrivateAccountMedias = $instagram->getMedias('kevin');
echo $nonPrivateAccountMedias[0]->getLink();

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:

use Phpfastcache\Helper\Psr16Adapter;

$instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'username', 'password', new Psr16Adapter('Files'));
$instagram->login(); // will use cached session if you want to force login $instagram->login(true)
$instagram->saveSession();  //DO NOT forget this in order to save the session, otherwise have no sense
$account = $instagram->getAccountById(3);
echo $account->getUsername();

Using proxy for requests:

// https://docs.guzzlephp.org/en/stable/request-options.html#proxy
$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client(['proxy' => 'tcp://localhost:8125']));
// Request with proxy
$account = $instagram->getAccount('kevin');
\InstagramScraper\Instagram::setHttpClient(new \GuzzleHttp\Client());
// Request without proxy
$account = $instagram->getAccount('kevin');

Installation

Using composer

composer.phar require raiym/instagram-php-scraper phpfastcache/phpfastcache

or

composer require raiym/instagram-php-scraper phpfastcache/phpfastcache

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].