Skip to main content

CLI tool for collecting and archiving data from Instagram users with Instaloader.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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. Currently,
# Instarchive cannot be used without logging in.
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.
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] --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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instarchive-1.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instarchive-1.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file instarchive-1.0.1.tar.gz.

File metadata

  • Download URL: instarchive-1.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for instarchive-1.0.1.tar.gz
Algorithm Hash digest
SHA256 88727b6823b07651d13992a58f77722497214b18cee3707e70300900854e5300
MD5 2a099b3bb4f8cdc4858399e4b3ad7e1c
BLAKE2b-256 4f57f6273fbb5ea3a375e0a9d127d410b544580f678c03009570fd7ce8a36d93

See more details on using hashes here.

File details

Details for the file instarchive-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: instarchive-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for instarchive-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 daa26d2e1d7d1748808ab028361534d81225c231648457738c32d32b9dcd2ec7
MD5 a00a5092e8a08817a01e5146eebfc743
BLAKE2b-256 3055d04543d765f68bce837503cfefbf6550121f1b2974973bf69b947732e292

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page