跳转到主要内容

下载Instagram帖子的脚本。

项目描述

instasave

一个简单的脚本,用于从Instagram帖子中下载媒体。

安装

此代码与所有当前支持的Python版本兼容。在虚拟环境中使用以下命令安装它:

python -m pip install instasave

使用方法

[!警告]
滥用此脚本可能导致您的IP被Instagram封禁。

在此包安装并激活的环境中,可以通过python -m instasave或通过新创建的instasave命令调用。

详细使用方法如下

Usage: python -m instasave [OPTIONS] [URL]                                                 
                                                                                            
 Download media from Instagram posts.                                                       
                                                                                            
╭─ Arguments ──────────────────────────────────────────────────────────────────────────────╮
│   url      [URL]  Link to the Instagram post you want to download the content of.        │
│                   [default: None]                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────╮
│ --log-level                 TEXT  The base console logging level. Can be 'debug',        │
│                                   'info', 'warning' and 'error'.                         │
│                                   [default: info]                                        │
│ --install-completion              Install completion for the current shell.              │
│ --show-completion                 Show completion for the current shell, to copy it or   │
│                                   customize the installation.                            │
│ --help                            Show this message and exit.                            │
╰──────────────────────────────────────────────────────────────────────────────────────────╯

下载的文件将保存在当前目录下,文件名由文件类型(图像/视频)和下载时间戳组成。


由fsoubelet用♥制作
MIT © 2020 Felix Soubelet

项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

instasave-0.3.1.tar.gz (6.3 kB 查看哈希值)

上传时间 源代码

构建版本

instasave-0.3.1-py3-none-any.whl (6.8 kB 查看哈希值)

上传时间 Python 3

由以下支持