{"id":18852763,"url":"https://github.com/tatsh/instagram-archiver","last_synced_at":"2026-05-11T00:05:11.496Z","repository":{"id":50725909,"uuid":"500941136","full_name":"Tatsh/instagram-archiver","owner":"Tatsh","description":"Tool to download data from an Instagram profile you have access to.","archived":false,"fork":false,"pushed_at":"2025-04-07T23:09:16.000Z","size":1068,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T12:07:14.453Z","etag":null,"topics":["api","instagram"],"latest_commit_sha":null,"homepage":"https://instagram-archiver.rtfd.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tatsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Tatsh","patreon":"tatsh2","ko_fi":"tatsh2","liberapay":"tatsh2","custom":null}},"created_at":"2022-06-07T17:31:21.000Z","updated_at":"2025-04-07T23:09:11.000Z","dependencies_parsed_at":"2023-09-26T01:56:46.765Z","dependency_job_id":"16225e7d-eb74-4442-8c6a-12246d15507c","html_url":"https://github.com/Tatsh/instagram-archiver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tatsh%2Finstagram-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tatsh%2Finstagram-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tatsh%2Finstagram-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tatsh%2Finstagram-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tatsh","download_url":"https://codeload.github.com/Tatsh/instagram-archiver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860165,"owners_count":21173376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","instagram"],"created_at":"2024-11-08T03:41:29.062Z","updated_at":"2026-05-11T00:05:11.485Z","avatar_url":"https://github.com/Tatsh.png","language":"Python","funding_links":["https://github.com/sponsors/Tatsh","https://patreon.com/tatsh2","https://ko-fi.com/tatsh2","https://liberapay.com/tatsh2","https://buymeacoffee.com/Tatsh","https://www.patreon.com/Tatsh2"],"categories":[],"sub_categories":[],"readme":"# instagram-archiver\n\n\u003c!-- WISWA-GENERATED-README:START --\u003e\n\n[![Python versions](https://img.shields.io/pypi/pyversions/instagram-archiver.svg?color=blue\u0026logo=python\u0026logoColor=white)](https://www.python.org/)\n[![PyPI - Version](https://img.shields.io/pypi/v/instagram-archiver)](https://pypi.org/project/instagram-archiver/)\n[![GitHub tag (with filter)](https://img.shields.io/github/v/tag/Tatsh/instagram-archiver)](https://github.com/Tatsh/instagram-archiver/tags)\n[![License](https://img.shields.io/github/license/Tatsh/instagram-archiver)](https://github.com/Tatsh/instagram-archiver/blob/master/LICENSE.txt)\n[![GitHub commits since latest release (by SemVer including pre-releases)](https://img.shields.io/github/commits-since/Tatsh/instagram-archiver/v0.4.1/master)](https://github.com/Tatsh/instagram-archiver/compare/v0.4.1...master)\n[![CodeQL](https://github.com/Tatsh/instagram-archiver/actions/workflows/codeql.yml/badge.svg)](https://github.com/Tatsh/instagram-archiver/actions/workflows/codeql.yml)\n[![QA](https://github.com/Tatsh/instagram-archiver/actions/workflows/qa.yml/badge.svg)](https://github.com/Tatsh/instagram-archiver/actions/workflows/qa.yml)\n[![Tests](https://github.com/Tatsh/instagram-archiver/actions/workflows/tests.yml/badge.svg)](https://github.com/Tatsh/instagram-archiver/actions/workflows/tests.yml)\n[![Coverage Status](https://coveralls.io/repos/github/Tatsh/instagram-archiver/badge.svg?branch=master)](https://coveralls.io/github/Tatsh/instagram-archiver?branch=master)\n[![Dependabot](https://img.shields.io/badge/Dependabot-enabled-blue?logo=dependabot)](https://github.com/dependabot)\n[![Documentation Status](https://readthedocs.org/projects/instagram-archiver/badge/?version=latest)](https://instagram-archiver.readthedocs.org/?badge=latest)\n[![mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n[![uv](https://img.shields.io/badge/uv-261230?logo=astral)](https://docs.astral.sh/uv/)\n[![pytest](https://img.shields.io/badge/pytest-zz?logo=Pytest\u0026labelColor=black\u0026color=black)](https://docs.pytest.org/en/stable/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Downloads](https://static.pepy.tech/badge/instagram-archiver/month)](https://pepy.tech/project/instagram-archiver)\n[![Stargazers](https://img.shields.io/github/stars/Tatsh/instagram-archiver?logo=github\u0026style=flat)](https://github.com/Tatsh/instagram-archiver/stargazers)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![Prettier](https://img.shields.io/badge/Prettier-black?logo=prettier)](https://prettier.io/)\n\n[![@Tatsh](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpublic.api.bsky.app%2Fxrpc%2Fapp.bsky.actor.getProfile%2F%3Factor=did%3Aplc%3Auq42idtvuccnmtl57nsucz72\u0026query=%24.followersCount\u0026label=Follow+%40Tatsh\u0026logo=bluesky\u0026style=social)](https://bsky.app/profile/Tatsh.bsky.social)\n[![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Tatsh-black?logo=buymeacoffee)](https://buymeacoffee.com/Tatsh)\n[![Libera.Chat](https://img.shields.io/badge/Libera.Chat-Tatsh-black?logo=liberadotchat)](irc://irc.libera.chat/Tatsh)\n[![Mastodon Follow](https://img.shields.io/mastodon/follow/109370961877277568?domain=hostux.social\u0026style=social)](https://hostux.social/@Tatsh)\n[![Patreon](https://img.shields.io/badge/Patreon-Tatsh2-F96854?logo=patreon)](https://www.patreon.com/Tatsh2)\n\n\u003c!-- WISWA-GENERATED-README:STOP --\u003e\n\nSave Instagram content you have access to.\n\n## Installation\n\n```shell\npip install instagram-archiver\n```\n\n## Usage\n\n```plain\nUsage: instagram-archiver [OPTIONS] [USERNAME]\n\n  Archive a profile (USERNAME) or your saved posts (--saved).\n\n  Pass exactly one of: a USERNAME positional argument, or --saved/-s.\n\nOptions:\n  -o, --output-dir DIRECTORY      Output directory. Defaults to the username\n                                  (profile mode) or `.` (saved mode).\n  -b, --browser [brave|chrome|chromium|edge|opera|vivaldi|firefox|safari]\n                                  Browser to read cookies from.\n  -p, --profile TEXT              Browser profile.\n  -d, --debug                     Enable debug output.\n  -q, --quiet                     Disable progress display updates.\n  -S, --sleep-time INTEGER        Number of seconds yt-dlp waits between\n                                  requests.\n  --no-log                        Ignore log (re-fetch everything).\n  -C, --include-comments          Also download all comments (extends download\n                                  time significantly).\n  -R, --include-child-comments    Also recursively download child (reply)\n                                  comments. Implies --include-comments.\n  -s, --saved                     Archive your saved posts instead of a\n                                  profile (mutually exclusive with USERNAME).\n  -u, --unsave                    Unsave posts after successful archive (only\n                                  with --saved).\n  -h, --help                      Show this message and exit.\n```\n\nTypical use:\n\n```shell\ninstagram-archiver -o ~/instagram-backups/username username\ninstagram-archiver --saved -o ~/instagram-backups/saved\n```\n\nWhen neither `--debug` nor `--quiet` is passed, a Rich-based live progress\ndisplay (provided by the `archiver-stats` library) is shown on stderr. Pass\n`--quiet` to disable it for non-interactive use, or `--debug` to see verbose\nlog output instead.\n\nDownloads run concurrently using `niquests.AsyncSession` and\nproducer/consumer queues: one worker for media posts, one for comments\n(when `-C` is passed), and one for yt-dlp video downloads. Each worker\nhandles at most one in-flight HTTP request at a time, which keeps Instagram\nrate-limiting at bay while still overlapping image downloads with yt-dlp.\n\nThe dedup log lives at `\u003coutput_dir\u003e/.log.db` and is honoured across runs in\nboth profile and `--saved` modes. Pass `--no-log` to bypass it and re-fetch\neverything.\n\n## Notes\n\nThe default output path is the username under the current working directory.\n\nVideos are saved using yt-dlp and its respective configuration.\n\nIn profile mode, both image and video items in the user's highlights and currently-active stories\nare archived. Image story items go through the same media pipeline as posts, while video items\nare handed to yt-dlp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatsh%2Finstagram-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatsh%2Finstagram-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatsh%2Finstagram-archiver/lists"}