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.

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.2

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.2
File Size Uploaded Provenance Actions
juanig-1.1.2.tar.gz 16.1 kB Without provenance Details for juanig-1.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 31.2 kB

Release files / juanig-1.1.2.tar.gz

Download URL juanig-1.1.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5f95a97e035f1ea09643a144741c27d0c5802e69f1aeb6c2179c433b1318a1bd
BLAKE2b-256 checksum
How to use checksums
a6f1b76187f4367e99b9afb1ad2b9559ba0fdbf949b0a236aef284d33a3c1ac3
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.2-py3-none-any.whl

Download URL juanig-1.1.2-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29280f30fd451e6deed2ad5090a93694c62d91ba36093ee77ff9454fd443c0c1
BLAKE2b-256 checksum
How to use checksums
15f71deef6876f3a343b15d69258ae2ebb7bddf5f72e9b5fcff81019f2c9666f
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.2

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