Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

PHP script to download all images from an Instagram account

License

Notifications You must be signed in to change notification settings

ClayF/instagram-image-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-instagram-downloader

Introduction

Quick script I whipped up to download all my posted images and videos from Instagram. Supports concurrent downloads using RollingCurlX by marcushat.

Changes to Instagram's API may break this script. I will try to keep it up to date, but make no guarantees.

Usage

$ php instagram_dl.php <username>

Cookies

If your account is private, the script will need to be authenticated. Cookies can be exported from your local browser and added to a file called cookies.txt in the same folder as the script.

Example cookies.txt

instagram.com FALSE / FALSE 1447966497.46746 sessionid IGSC29284ebc9306394b234aeb80328798a667fc77abd2f34ea8ef9d64a9e8%3ApOywREAC42kSpG8IQNmlZz4qRxCsGDf7n%3A%7B%22_token_ver%22%3A1%2C%22_auth_user_id%22%3A45790314%2C%22_token%22%3A%2245790314%3ASgNlcPPqBkWeYFhN3WVXxzQJ7A3GarmD%3A5289dd03492ec09956373ee803d18106f77df35bcb9179b8bfc80230%22%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22last_refreshed%22%3A1444176362.567775%2C%22_platform%22%3A4%7D

Requirements

This script requires the following installed:

  • PHP
  • cURL

About

PHP script to download all images from an Instagram account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages