跳至主要内容

另一个无API的Instagram图片和视频下载器

项目描述

不是所有的宝藏都是银和金,伙计。

build repo versions format coverage doc grade license keepachangelog saythanks

InstaLooter是一个程序,可以下载与Instagram个人资料相关联的任何图片或视频,无需任何API访问。它可以看作是现在已弃用的InstaRaider的重新实现,该软件由@akurtovic开发。

v1.0.0 完全从零开始重写,因此可能会与您的自制脚本不兼容。同时,我们尽力保持CLI与之前版本的一致性,希望它能让您感到宾至如归。

需求

coloredlogs

彩色输出

PyPI coloredlogs

Source coloredlogs

License coloredlogs

dateutil

日期处理

PyPI dateutil

Source dateutil

License dateutil

docopt

CLI参数解析

PyPI docopt

Source docopt

License docopt

fs

文件系统处理

PyPI fs

Source fs

License fs

requests

HTTP处理

PyPI requests

Source requests

License requests

six

Python 2/3兼容性

PyPI six

Source six

License six

tenacity

重试直至成功

PyPI tenacity

Source tenacity

License tenacity

tqdm

CLI动态输出

PyPI tqdm

Source tqdm

License tqdm

verboselogs

更详细的日志

PyPI verboselogs

Source verboselogs

License verboselogs

安装

InstaLooter 可在 PyPI 上使用 pip 安装。如果您不熟悉 Python 生态系统中的包管理,请参阅 安装页面。但是,您可能最终会使用以下命令

pip install --user instalooter --pre

用法

instalooter 内置了其 CLI

$ instalooter user <username> [<directory>] [options]
$ instalooter hashtag <hashtag> [<directory>] [options]
$ instalooter post <post_token> [<directory>] [options]
$ instalooter batch [<batch_file>]

查看 instalooter --usage 以获取所有可能的用法,或 instalooter --help 以获取完整的用法指南。

登录和登出

通过 instalooter 登录 Instagram 有两种方式

  • 使用 login 子命令 (instalooter login),通过用户名和密码交互式登录。

  • 向任何下载命令提供一个 --username(如果您想的话,还可以提供 --password)参数。

在这两种情况下,都会在特定文件夹中创建一个会话cookie。要删除它并在服务器上关闭会话,请使用 logout 子命令。

示例

下载当前目录中 instagram 个人资料下的所有 图片

$ instalooter user instagram

下载最新 20 张标记为 python 的图片或视频到 /tmp

$ instalooter hashtag python /tmp -n 20 --get-videos -c MYLOGIN

~/Pictures 目录中的 URL 下载单个帖子

$ instalooter post "https://www.instagram.com/p/BFB6znLg5s1/" ~/Pictures

使用配置文件以自定义参数从多个账户下载(请参阅 批量模式

$ instalooter batch /path/to/a/config/file.ini

用法页面 上了解更多关于 在线文档 的信息。

项目详情


下载文件

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

源代码分发

instalooter-2.4.4.tar.gz (450.6 kB 查看哈希)

上传于

构建发行版

instalooter-2.4.4-py2.py3-none-any.whl (45.6 kB 查看哈希值)

上传于 Python 2 Python 3

由以下支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面