A tool to download all images and videos and story highlights from an Instagram profile.
Project description
Instagram Profile Downloader
Overview
instagram_profile_downloader
is a powerful and user-friendly tool for downloading all images, videos, and story highlights from an Instagram profile. This command-line interface (CLI) tool leverages the instaloader
library to fetch media content efficiently and provides a seamless way to manage and store your downloaded media.\n\n
Features
Download Images and Videos: Fetch all posts including images, videos, and sidecar posts (multiple images/videos in one post).
Download Story Highlights: Optionally download story highlights from a profile.\n- Progress Display: Visual progress display using the rich
library for better user experience.
Flexible Directory Management: Choose the base directory for media storage interactively or via CLI argument.
Headless System Compatibility: Falls back to CLI input if the graphical interface is not available.
Installation
To install the instagram_profile_downloader
package, you can use pip
:
pip install instagram_profile_downloader
Usage
Basic Usage
To download media from an Instagram profile, simply run the following command:
instagram_profile_downloader <profile_name>
Command-Line Options
--media-root
: Specify the base directory for media output. If not provided, you will be prompted to select a directory interactively.--no-highlights
: Do not download story highlights.--no-posts
: Do not download posts.--user
: Instagram username (required for downloading story highlights).--password
: Instagram password (required for downloading story highlights).
Examples
Download Media from a Profile
instagram_profile_downloader natgeo
Specify a Base Directory for Media Output
instagram_profile_downloader natgeo --media-root /path/to/media
Download Only Posts (No Highlights)
instagram_profile_downloader natgeo --no-highlights
Download Only Highlights (No Posts)
instagram_profile_downloader natgeo --no-posts
Provide Instagram Credentials for Highlights
instagram_profile_downloader natgeo --user your_username --password your_password
Step-by-Step Tutorial
- Install the Tool:
pip install instagram_profile_downloader
- Run the Tool:
- Interactive Directory Selection:
instagram_profile_downloader natgeo
Follow the prompts to select the base directory for media storage.
- Specify Directory via CLI:
instagram_profile_downloader natgeo --media-root /path/to/media
- Optional Flags:
- To exclude highlights:
instagram_profile_downloader natgeo --no-highlights
- To exclude posts:
instagram_profile_downloader natgeo --no-posts
- Credentials for Highlights:
- If you want to download story highlights, you need to provide your Instagram credentials:
instagram_profile_downloader natgeo --user your_username --password your_password
Logging
All activities and errors are logged in a log file located in the logs
directory under your specified media root directory. The log file is named based on the profile and the current date.
By following this guide, you should be able to efficiently use the instagram_profile_downloader
tool to manage and download media from Instagram profiles. If you encounter any issues or have questions, feel free to open an issue on the GitHub repository."
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file instagram_profile_downloader-1.1.7.tar.gz
.
File metadata
- Download URL: instagram_profile_downloader-1.1.7.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3df4388b2a685354c9f0582e05f94ef192d80073e9e68789ed6f183c6a746c5 |
|
MD5 | f3184c3fe845016c9ab8610c2e18e6c9 |
|
BLAKE2b-256 | c458aac74ec4aef45fcbd16a3cc76f0032d7fcbff82ad0c038b542e8fdba6080 |
File details
Details for the file instagram_profile_downloader-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: instagram_profile_downloader-1.1.7-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385ea13f353e12944934b88d5dcc17910d582a623095829a4da31bb2cc07f18d |
|
MD5 | 31c5695993b954e221f0a542c7b21dcf |
|
BLAKE2b-256 | 512d1f7f541d6171d8375d633a4d2371e9aa35b10f7d98a88c53629240a01229 |