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
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.
To install the instagram_profile_downloader
package, you can use pip
:
pip install instagram_profile_downloader
To download media from an Instagram profile, simply run the following command:
instagram_profile_downloader <profile_name>
--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).
instagram_profile_downloader natgeo
instagram_profile_downloader natgeo --media-root /path/to/media
instagram_profile_downloader natgeo --no-highlights
instagram_profile_downloader natgeo --no-posts
instagram_profile_downloader natgeo --user your_username --password your_password
- 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
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."