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

Until the package is on the npm registry, use GitHub:

npm i -g github:JuanCunhaa-dev/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 / source

pip install git+https://github.com/Juancunhaa-dev/juanig.git
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 post, carousel, or Reel links
-o, --output Destination folder. Default: the user Downloads folder
--json Print JSON with saved paths (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 GitHub version
-V, --version Print the installed version
-h, --help Show help

Environment variables: JUANIG_OUTPUT, JUANIG_SESSIONID.

Examples

juanig "https://www.instagram.com/p/AAAA/"
juanig "https://www.instagram.com/p/AAAA/" "https://www.instagram.com/reel/BBBB/" -o public/images --json

Output

Default:

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

--json:

{
  "ok": true,
  "output": "C:\\Users\\you\\Downloads",
  "posts": [{ "files": ["C:\\Users\\you\\Downloads\\photo.jpg"] }],
  "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.1

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.1
File Size Uploaded Provenance Actions
juanig-1.1.1.tar.gz 15.1 kB Without provenance Details for juanig-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 29.5 kB

Release files / juanig-1.1.1.tar.gz

Download URL juanig-1.1.1.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
332d239bfe9fa1b3692161424757711189c648c1484165bcc29615919fd27740
BLAKE2b-256 checksum
How to use checksums
d1d9a95141091e476b37f6e0c1c62a9e7390a66b11aedf9afa7a58621f677a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL juanig-1.1.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9270731287bf9a4f679fa0e3a7ff3430f5ce2c868b01a399376e0b91dfab2da6
BLAKE2b-256 checksum
How to use checksums
56659d7e97cc3d7a27a632bacb61b82be09d428c15e0a57f2b2dd44423ae0fc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for juanig 1.1.1

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