All Projects → Ayesh → Instagramdownload

Ayesh / Instagramdownload

Licence: mit
Instagram image and video downloader with URL validation and cURL integration

Projects that are alternatives of or similar to Instagramdownload

Bash2mp4
Video Downloader for Termux .
Stars: ✭ 68 (-51.43%)
Mutual labels:  video-downloader, instagram
VKRdownloader
Vkrdownloader: All in one Video Downloader - Download videos from facebook twitter youtube tiktok and 1000+ other sites . YouTube downloader , facebook downloader . made by Vijay Kumar
Stars: ✭ 25 (-82.14%)
Mutual labels:  instagram, video-downloader
Assent
Multi-provider framework in Elixir
Stars: ✭ 126 (-10%)
Mutual labels:  instagram
Workflowshare
Workflow实例分享
Stars: ✭ 137 (-2.14%)
Mutual labels:  instagram
Instagram ssl pinning
Bypassing SSL Pinning in Instagram Android App
Stars: ✭ 135 (-3.57%)
Mutual labels:  instagram
Bubblepagerindicator
A view pager indicator view to deal with a large amount of pages.
Stars: ✭ 127 (-9.29%)
Mutual labels:  instagram
Videodownloadhelper
Chrome Extension to Help Download Video for Some Video Sites.
Stars: ✭ 136 (-2.86%)
Mutual labels:  video-downloader
Camerabutton
Instagram-like button for taking photos or recording videos
Stars: ✭ 121 (-13.57%)
Mutual labels:  instagram
Instagram Bot
An Instagram bot developed using the Selenium Framework
Stars: ✭ 138 (-1.43%)
Mutual labels:  instagram
Howlstagram
Stars: ✭ 132 (-5.71%)
Mutual labels:  instagram
Instagram
Bruteforce attack for Instagram
Stars: ✭ 2,296 (+1540%)
Mutual labels:  instagram
Blackphish
🔱 [ Phishing Made Easy ] 🔱 (In Beta)
Stars: ✭ 133 (-5%)
Mutual labels:  instagram
Instalike Instagram Bot
automate instagram activities using instagram bot - like follow/unfollow comment; python requests lib
Stars: ✭ 128 (-8.57%)
Mutual labels:  instagram
Telegram Instapy Scheduling
A Telegram bot for scheduling InstaPy
Stars: ✭ 136 (-2.86%)
Mutual labels:  instagram
Instagram Tools
Node.JS Instagram Tools
Stars: ✭ 127 (-9.29%)
Mutual labels:  instagram
Instagramactivityindicator
Activity Indicator similar to Instagram's.
Stars: ✭ 138 (-1.43%)
Mutual labels:  instagram
Toolsig
toolsigv3.1 (Instagram Tools)
Stars: ✭ 121 (-13.57%)
Mutual labels:  instagram
Inwidget
inWidget - free Instagram widget for your website. Allows you to show photos from an Instagram account, by hashtags and more.
Stars: ✭ 132 (-5.71%)
Mutual labels:  instagram
Node Youtube Dl
youtube-dl driver for node
Stars: ✭ 1,692 (+1108.57%)
Mutual labels:  video-downloader
Mygf Instagram
Like posts of my girlfriend's Instagram using web api, don't need any api key and access tokens just login and password
Stars: ✭ 140 (+0%)
Mutual labels:  instagram

InstagramDownload - Instagram photo and Video Downloader

Travis

Instagram Photo and video download helper library.

New: Checkout TikTokOff - TikTok video online downloader (no watermarks)

Update on May 22, 2020: Due to Instagram no longer allowing anonymous users to view photos/videos, this library is currently not working. A new version 7 is in the works, but there is no ETA yet. Only IGTV videos are working now

Old and unsupported versions

Old and minimally supported versions

I wrote this class mainly for my online Instagram photo, video and IGTV downloader, but I thought share this piece for your own extensions.

  • Validates Instagram URL (domain validation, URL path validation).
  • Uses OG properties to detect the image and video URL.
  • Supports Instagram photos, videos, and Instagram TV videos
  • Verbose error reporting with proper exceptions.
  • Full unit tests
  • No dependencies other than PHP curl extension (which is most likely enabled by already)

Requirements

  • PHP 7.4
  • Curl

Thanks to:

  • MetaData - Meta data parsing regex and curl class.

Installation

With composer Install the library by running the following in your project.

composer require ayesh/instagram-download

Without composer Download the zip file from Github, and configure your autoload handler to autoload PSR-4 Ayesh\InstagramDownload namespace from the downloaded contents src directory.

You could also manually require the file. Requires a certain amount of guilty feeling because it's 2017 and you are not using a decent autoload mechanism.

require_once 'src/InstagramDownload.php'

Usage

<?php
use Ayesh\InstagramDownload\InstagramDownload;
$url = 'http://instagram.com/p/tmwAlCGygb/';

try {
  $client = new InstagramDownload($url);
  $url = $client->getDownloadUrl(); // Returns the download URL.
  $type = $client->getType(); // Returns "image" or "video" depending on the media type.
}
catch (\InvalidArgumentException $exception) {
  /*
   * \InvalidArgumentException exceptions will be thrown if there is a validation 
   * error in the URL. You might want to break the code flow and report the error 
   * to your form handler at this point.
   */
  $error = $exception->getMessage();
}
catch (\RuntimeException $exception) {
  /*
   * \RuntimeException exceptions will be thrown if the URL could not be 
   * fetched, parsed, or a media could not be extracted from the URL. 
   */
  $error = $exception->getMessage();
}
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].