Linux command
instaloader 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Download
instaloader [profile_name]
Example
instaloader --highlights [profile_name]
Example
instaloader -q -G [profile_name]
Example
instaloader -l [username] -p [password] [profile_name]
Fast update
instaloader -F [profile_name]
Example
instaloader -l [username] -p [password] -s --igtv [profile_name]
说明
instaloader downloads pictures, videos, captions, and metadata from Instagram profiles. It can archive complete profiles including posts, stories, IGTV, and highlights. Targets can be profile names, hashtags ("#tag"), location IDs (%id), or the special selectors :feed, :stories, :saved. Prefixing a profile with @ downloads its list of followees instead. For best quality media and access to private profiles or stories, login credentials are required. Downloaded content includes metadata like captions, comments, and geolocation when available.
参数
- -l, --login _USER_
- Log in as _USER_. Prompts for the password interactively and caches the session locally.
- -p, --password _PASS_
- Supply the password on the command line. Discouraged: leaks into shell history and process list; prefer the interactive prompt.
- -f, --sessionfile _FILE_
- Read/write the session cookie from/to _FILE_ instead of the default location.
- --load-cookies _BROWSER_
- Import the Instagram cookies of an already-logged-in browser (e.g. firefox, chrome).
- -s, --stories
- Also download stories of every listed target (requires login).
- --igtv
- Also download IGTV/Reel videos.
- --highlights
- Download story highlights.
- -G, --geotags
- Save geotag information as .txt alongside posts.
- -F, --fast-update
- Stop iterating a target once the first already-downloaded item is reached.
- --post-filter _EXPR_, --only-if _EXPR_
- Python expression evaluated per post (e.g. `--post-filter=viewer_has_liked`); only matching posts are downloaded.
- --storyitem-filter _EXPR_
- Same, applied to story items.
- --no-pictures, --no-videos, --no-captions, --no-metadata-json, --no-profile-pic, --no-posts
- Opt out of individual content types.
- --dirname-pattern _PATTERN_, --filename-pattern _PATTERN_
- Customize output paths using Python format strings.
- -q, --quiet
- Suppress interactive prompts and progress messages.
- --user-agent _UA_
- Send a custom HTTP User-Agent header.
FAQ
What is the instaloader command used for?
instaloader downloads pictures, videos, captions, and metadata from Instagram profiles. It can archive complete profiles including posts, stories, IGTV, and highlights. Targets can be profile names, hashtags ("#tag"), location IDs (%id), or the special selectors :feed, :stories, :saved. Prefixing a profile with @ downloads its list of followees instead. For best quality media and access to private profiles or stories, login credentials are required. Downloaded content includes metadata like captions, comments, and geolocation when available.
How do I run a basic instaloader example?
Run `instaloader [profile_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --login _USER_ do in instaloader?
Log in as _USER_. Prompts for the password interactively and caches the session locally.