Skip to main content

instagram-offline Python package REUSE status Vibe coded

Downloads all posts, photos as well as videos and reels, of one or more Instagram accounts and builds a self-contained static site in site/, one folder per account. Watch the creators you chose distraction-free, without ads, autoplay or an algorithmic feed. Keep a usable archive of your own work, which Meta's data export does not easily provide.

How it works

Instagram rejects scripted API clients (Instaloader, gallery-dl, yt-dlp) while a real browser session works fine. The downloader therefore drives a logged-in Chromium-based browser over the DevTools protocol: it scrolls the profile grid, harvests the post data Instagram sends to the page, and downloads the files from Instagram's CDN. Collaboration posts owned by another account are included. Re-runs only fetch new posts.

Usage

uvx instagram-offline USERNAME
python -m http.server -d site

uvx instagram-offline --all updates every account already archived in site/. From a checkout, you can use uv run insta to execute the setup the same way.

Log in to Instagram in the browser window on the first run.

Any Chromium-based browser works: Chromium, Chrome, Brave, Edge, Vivaldi or Opera are found automatically on Linux, macOS and Windows; --browser EXECUTABLE selects one explicitly, and a Chromium-based browser in the conventional $BROWSER variable is preferred over the search. Without any, Playwright's own Chromium is downloaded on first use. Firefox and Safari are not supported, as they lack the DevTools protocol the tool relies on.

Every account page has topic filters and an "About" box on the overview: by default the topics are the hashtags the account uses most, and the About text is the account's own bio, captured with its name, category, follower count and links. An optional site/USERNAME/profile.json with an about text and a list of topics (name plus caption keywords) replaces either. Keywords match at the start of a word; a trailing space makes a keyword match whole words only.

Versioning the content

site/ is ignored by this repository. To track changes of the archive, keep it as a separate, private Git repository that ignores the video files and versions only the metadata, index and HTML pages:

cd site
git init
printf '*.mp4\n*.part\n' > .gitignore
git add .
git commit -m "Add archive"

After each download run, commit the changes in site/.

This project is not affiliated with, endorsed by or connected to Instagram or Meta Platforms, Inc. in any way. This software is provided for research and educational purposes only. Downloading content from Instagram in an automated way, in particular with a logged-in account, may violate Instagram's Terms of Use and Meta's platform policies and may result in restrictions or termination of the account used. All downloaded content remains the intellectual property of its respective creators and rights holders. Whether making a copy for private use is permitted depends on the copyright law of your jurisdiction; distributing, publishing or otherwise making the downloaded content or the generated website available to the public without the rights holders' permission constitutes copyright infringement and may violate personality, image and data-protection rights.

You are solely responsible for ensuring that your use of this software complies with all applicable laws, regulations and contractual terms. The authors and contributors accept no liability for any claims, damages or other liability arising from the use of this software or the content obtained with it. Nothing in this document constitutes legal advice.

Metadata

Release files for instagram-offline 0.6.0

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

Source distribution (sdist)

Source distribution for instagram-offline 0.6.0
File Size Uploaded Provenance
instagram_offline-0.6.0.tar.gz 131.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for instagram-offline 0.6.0
File Interpreter ABI Platform
instagram_offline-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 168.8 kB

Release files / instagram_offline-0.6.0.tar.gz

Download URL instagram_offline-0.6.0.tar.gz
Size 131.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8f0643ad9d3df3faa29c96dc19d80c02f652707a977e79399d44e3494bdb2a2
BLAKE2b-256 checksum
How to use checksums
da2991fb1475f830dc09ae120b99bd527c48121ccb9f22fcf2ab38e2202a5994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / instagram_offline-0.6.0-py3-none-any.whl

Download URL instagram_offline-0.6.0-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05908503b569da4f0c523d48393dd5fa4ca3ebb2f13c5a25b326d8adfea906f8
BLAKE2b-256 checksum
How to use checksums
c53bb737718654db248ae326a75634cb93b27518265f43cbc6f3f0d99ec3a085
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Security for instagram-offline 0.6.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for instagram_offline-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

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