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.
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.

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.2.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.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instarchive-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b278aad30fb546018602406e15c171dc854ea9ea3871be08d151e67618a29b87
MD5 ede0f50d272b231634d1b531a8233ca2
BLAKE2b-256 f65dc011e7ab7fe234a021513da0f76f2b6b083e037a85ecf7f385b5113d2885

See more details on using hashes here.

File details

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

File metadata

  • Download URL: instarchive-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 947a53f342ee4eeeb832dd80b8cfdb112ea7dc334c91bee5b64c708769a575c8
MD5 6f1d0f37156092973ef69a45e5e3a56e
BLAKE2b-256 c2bc197e8bbd222d0b096180a362e34754b56b88a4c735be8c7ee63d3f82e7d3

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