Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Instarchive

Instarchive is a command-line utility for collecting and organizing data from specific Instagram profiles using the Instaloader Python module.

Installation

Instarchive is available on PyPI.

pip3 install instarchive

Features

  • Downloads items only from a given list of users to track (instead of enumerating all followees or downloading the whole feed).

  • Sorts items from :stories and :feeds into directories based on username.

  • Responds to username changes and updates the tracking list file automatically.

Usage

Demo assuming a Unix environment:

# Set up the archive. Do re-run this command if you've changed your username.
# The username can also be omitted for using Instarchive anonymously (private
# profiles won't be accessible in those cases).
instarchive init 'my_username'

# The file containing a list of users to track. Only data and metadata
# associated with these users will ever be downloaded.
cat << EOF > ~/instarchive/tracking.txt
target_username

# this is a comment
another_target_username
EOF

# Login to Instagram; your password and authentication code, if necessary, will
# be prompted for. Also, re-run this command if your session has expired, as is
# typically the case when HTTP 401 errors prevent content download.
instarchive login

# Download all accessible data (profile info, profile pic, posts, highlights,
# stories etc.) from all of the users named in the tracking list. Optional;
# intended to be run only once or occasionally since it takes a lot of web
# requests to Instagram. Consider the 'feed' command instead for regular runs.
instarchive everything

# Download data (stories and posts) from the users named in the tracking list,
# only based on what is visible in your feed. Note that this is much faster
# than the 'everything' command. To specify the number of posts to go through in
# the feed, pass the '-p <number of posts>' option; the default is 200.
instarchive feed

By default, the archive is located at the instarchive directory under the home directory of the current OS user. This location can be changed by passing the -d <path to archive directory> option to instarchive.

Run instarchive [optional command name] --help for usage information.

Disclaimer

As with Instaloader itself, Instarchive is independent of and unsupported by Instagram. Use at your own risk, and be wary of ratelimits.

Metadata

Release files for instarchive 1.0.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 instarchive 1.0.2
File Size Uploaded
instarchive-1.0.2.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 13.7 kB

Release files / instarchive-1.0.2.tar.gz

Download URL instarchive-1.0.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b278aad30fb546018602406e15c171dc854ea9ea3871be08d151e67618a29b87
BLAKE2b-256 checksum
How to use checksums
f65dc011e7ab7fe234a021513da0f76f2b6b083e037a85ecf7f385b5113d2885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / instarchive-1.0.2-py3-none-any.whl

Download URL instarchive-1.0.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
947a53f342ee4eeeb832dd80b8cfdb112ea7dc334c91bee5b64c708769a575c8
BLAKE2b-256 checksum
How to use checksums
c2bc197e8bbd222d0b096180a362e34754b56b88a4c735be8c7ee63d3f82e7d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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