https://github.com/alphka/instagram-downloader
Download Instagram posts, stories, highlights and more
https://github.com/alphka/instagram-downloader
cli date downloader instagram lastmodified lastmodifiedtime metadata sharp
Last synced: about 2 months ago
JSON representation
Download Instagram posts, stories, highlights and more
- Host: GitHub
- URL: https://github.com/alphka/instagram-downloader
- Owner: Alphka
- License: isc
- Created: 2023-07-31T11:40:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-25T00:01:35.000Z (10 months ago)
- Last Synced: 2025-07-25T05:27:04.417Z (10 months ago)
- Topics: cli, date, downloader, instagram, lastmodified, lastmodifiedtime, metadata, sharp
- Language: JavaScript
- Homepage:
- Size: 218 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Instagram Downloader
### Description
A program written in JavaScript to download images and videos from Instagram.
### Usage
```
instadl [options] username
instadl [options] username1 username2
```
### Supported options
```
Usage: instadl [options]
Arguments:
string Usernames
Options:
-v, --version Display program version
-o, --output [path] Output directory
-f, --force Force creation of output directory
-q, --queue Set how many items to get from Instagram API (default: 12)
-l, --limit Set how many items to download in total
-ns, --no-stories Disable stories download
-nt, --no-timeline Disable timeline download
-nh, --no-highlights Disable highlights download
-nhc, --no-hcover Disable highlights' cover download
-d, --debug Verbose output
-fd, --flat-dir Download all contents of the user in the same directory
-wt, --with-thumbs Download thumbnails of videos
-h, --help Display help
```
### Installation
```
npm install
npm link
```
> [!NOTE]
> Before executing the CLI program, copy the contents of the file `.env.example` to a new file named `.env` and
> fill all the environment variables there with your account credentials that are stored in the browser's cookies.
> This program will not work without authentication.
> [!NOTE]
> If the code fails, even after setting your account credentials in the `.env` file, try setting the `COOKIES`
> property with a JSON object, like this: `COOKIES={"datr":"...","ig_did":"..."}`, and deleting the `config.json` file.
> This avoids authentication issues with the Instagram API.
### License
[ISC](LICENSE.md) © 2023 Kayo Souza