instagram-offline 
Downloads all videos and reels of one or more Instagram accounts and builds a self-contained static site in site/, one folder per account.
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 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
uv run insta USERNAME
python -m http.server -d site
Log in to Instagram in the Chromium window on the first run.
An optional site/USERNAME/profile.json with an about text and a list of topics (name plus caption keywords) adds an "About" box to the overview and topic filters to the account page. 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/.
Legal notice
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.
Licensed under the GNU General Public License v3.0 or later, see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file instagram_offline-0.1.0.tar.gz.
File metadata
- Download URL: instagram_offline-0.1.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e708d068d4ec0388a81aac742e5e3f20c490e6b74424d87b17fa8d7da03e1535
|
|
| MD5 |
fcf814621d20e52c737b7fa892f9c51f
|
|
| BLAKE2b-256 |
b4468c3f425f0b5c950130802175df62ca5fc628caedb53552b4af454b3ae93f
|
Provenance
The following attestation bundles were made for instagram_offline-0.1.0.tar.gz:
Publisher:
release.yml on bittner/instagram-offline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
instagram_offline-0.1.0.tar.gz -
Subject digest:
e708d068d4ec0388a81aac742e5e3f20c490e6b74424d87b17fa8d7da03e1535 - Sigstore transparency entry: 2794004166
- Sigstore integration time:
-
Permalink:
bittner/instagram-offline@d3a7cd690f31a49b5b0c51bbe3ee162ef78378af -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/bittner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d3a7cd690f31a49b5b0c51bbe3ee162ef78378af -
Trigger Event:
release
-
Statement type:
File details
Details for the file instagram_offline-0.1.0-py3-none-any.whl.
File metadata
- Download URL: instagram_offline-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6894f09a06f75626c342f29cdce14686757e00bf97836b7e7d65b8515fd3ef52
|
|
| MD5 |
ef7721a2a21091bb89d59ba3f7385b0b
|
|
| BLAKE2b-256 |
98c32fe9ceb0ee1c61d5d726ab7d3dafd243d32e0f5eb674d779a6b25e47f2e1
|
Provenance
The following attestation bundles were made for instagram_offline-0.1.0-py3-none-any.whl:
Publisher:
release.yml on bittner/instagram-offline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
instagram_offline-0.1.0-py3-none-any.whl -
Subject digest:
6894f09a06f75626c342f29cdce14686757e00bf97836b7e7d65b8515fd3ef52 - Sigstore transparency entry: 2794004236
- Sigstore integration time:
-
Permalink:
bittner/instagram-offline@d3a7cd690f31a49b5b0c51bbe3ee162ef78378af -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/bittner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d3a7cd690f31a49b5b0c51bbe3ee162ef78378af -
Trigger Event:
release
-
Statement type: