Skip to main content

juanig

CLI that downloads Instagram photos, carousels, videos, and Reels from a link. Built for building websites with real images.

juanig "https://www.instagram.com/p/DRH53C9EYV4/" -o public/images

By default files go to your Downloads folder as photo.jpg / video.mp4, with no profile names. No web server. Windows install uses Python plus a .cmd launcher, so Smart App Control does not block an unsigned .exe.

Portuguese guide: README.pt-BR.md
Give this file to an AI: AI-SETUP.md

Install

Needs Python 3. Node is optional and only used for npm i -g.

npm

npm i -g juanig

That runs pip install under the hood and puts juanig on PATH.

Windows (PowerShell)

irm https://github.com/Juancunhaa-dev/juanig/releases/latest/download/install.ps1 | iex

pip

pip install juanig
juanig --setup

Upgrade later with juanig --update.

--setup / --install-skills copies the skill only into IDEs that are already installed (the app folder already exists). It will not create Claude/Windsurf/Continue folders just because you have Cursor.

CLI

juanig [URL ...] [options]
Argument Description
URL One or more Instagram links, @links.txt, or - for stdin
-o, --output Destination folder. Default: the user Downloads folder
--first Download only the first carousel item
--index N Download only carousel item N (1-based)
--dry-run Resolve the post and print paths without downloading
--json Print JSON with saved paths, caption, and sizes (best for agents)
--sessionid Instagram sessionid cookie for private/restricted posts
--setup Put juanig on PATH and write AI skills for installed IDEs
--install-skills Only write the skill files for installed IDEs
--update Upgrade to the latest PyPI version
-V, --version Print the installed version
-h, --help Show help

Environment variables: JUANIG_OUTPUT, JUANIG_SESSIONID, JUANIG_NO_UPDATE_CHECK.

On download commands, juanig checks PyPI at most once a day and prints a line on stderr if a newer version exists. Set JUANIG_NO_UPDATE_CHECK=1 to skip that.

Examples

juanig "https://www.instagram.com/p/AAAA/"
juanig "https://www.instagram.com/p/AAAA/" --first -o public/images
juanig @links.txt -o public/images --json
juanig "https://www.instagram.com/p/AAAA/" --dry-run --json

Output

Default:

1 file(s)
  C:\Users\you\Downloads\photo.jpg

--json:

{
  "ok": true,
  "dry_run": false,
  "output": "C:\\Users\\you\\Downloads",
  "posts": [{
    "shortcode": "AAAA",
    "kind": "Photo",
    "caption": "Optional caption",
    "files": ["C:\\Users\\you\\Downloads\\photo.jpg"],
    "media": [{ "index": 1, "kind": "image", "width": 1440, "height": 1800 }]
  }],
  "errors": []
}

Use with an AI

Send AI-SETUP.md to Cursor, Claude, Copilot, Windsurf, or any coding agent. Ask it to install juanig and then download the posts you need.

Read AI-SETUP.md, install juanig, then download these posts into public/images:
https://www.instagram.com/p/AAAA/

Notes

  • Public posts only, unless you pass a sessionid
  • Private or gated posts need --sessionid / JUANIG_SESSIONID
  • Instagram can rate-limit anonymous access
  • CDN URLs expire; juanig downloads the file immediately
  • Never commit cookies

Disclaimer

juanig is unofficial and is not affiliated with Meta or Instagram. Use it for personal, lawful downloads of public media or content you have rights to (for example, assets for a site you are building). Respect Instagram's terms and copyright. Do not use it to scrape at scale.

License

MIT

Metadata

Release files for juanig 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for juanig 1.1.3
File Size Uploaded Provenance Actions
juanig-1.1.3.tar.gz 17.4 kB Without provenance Details for juanig-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for juanig 1.1.3
File Interpreter ABI Platform Actions
juanig-1.1.3-py3-none-any.whl Python 3 none any Details for juanig-1.1.3-py3-none-any.whl

Total release size: 34.1 kB

Release files / juanig-1.1.3.tar.gz

Download URL juanig-1.1.3.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6b4c1bad30b8768c806fb9b220a8093ae6b2a4c4172c92e7795958a5e3792645
BLAKE2b-256 checksum
How to use checksums
ddaf5d78a7e67d056a01c83635bee5bbcb7e9533ceb1af230bb1f93998ef14f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / juanig-1.1.3-py3-none-any.whl

Download URL juanig-1.1.3-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe85f4ee4f6e717987c58b87ef37a09a9fc356cb06b72dc8180eeeedc4747c32
BLAKE2b-256 checksum
How to use checksums
868d8887afe5d7ca7666c9ea187e80f98b810e780ec0f474a5fa50a3645f3bb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for juanig 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page