另一个没有api的instagram图片和视频下载程序

instalooter的Python项目详细描述


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

buildrepoversionsformatcoveragedocgradelicensekeepachangelogsaythanks

Instalooter是一个可以下载任何相关图片或视频的程序 从Instagram配置文件,没有任何API访问。它可以被看作 重新实现现已弃用的InstaRaider@akurtovic开发。

v1.0.0完全从头重写,因此,will 可能会破坏与自制脚本的兼容性。同时,非常小心 使cli尽可能与以前的版本保持一致, 所以希望能有家的感觉。

要求

coloredlogsColored outputPyPI coloredlogsSource coloredlogsLicense coloredlogs
dateutilDate manipulationPyPI dateutilSource dateutilLicense dateutil
docoptCLI arguments parsingPyPI docoptSource docoptLicense docopt
fsFilesystem handlingPyPI fsSource fsLicense fs
requestsHTTP handlingPyPI requestsSource requestsLicense requests
sixPython 2/3 compatibilityPyPI sixSource sixLicense six
tenacityRetry until successPyPI tenacitySource tenacityLicense tenacity
tqdmDynamic output in CLIPyPI tqdmSource tqdmLicense tqdm
verboselogsMore detailed logsPyPI verboselogsSource verboselogsLicense verboselogs

安装

在pypi上可以使用pip安装instalooter。如果你不是 熟悉python生态系统的包管理,请参见 Installation pagedocumentation中。 但是,您可能最终会使用以下命令:

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 -v -c MYLOGIN

~/pictures目录中的url下载一篇文章:

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

使用配置文件使用自定义参数从多个帐户下载 (见Batch mode):

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

有关Usage page的详细信息 在online documentation中。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java中的并发监视器和同步关键字   java试图删除学生,但不断出错   java JSONObject到文档   java在不使用Access Bean的情况下获取类中的属性值   安卓和windows phone之间的java共享数据库   java程序不断终止,我不知道为什么   java测量时间并不能证实LinkedList的优势   java InputStream从串行端口读取数据   Jersey 2.29中带有自定义注释的java注入方法参数   JAVA中的异常理解throw关键字   java ORMLite OneToOne关系   使用Play框架和Java解析Json数组   java对象编程中的文件错误   netbeans 8如何安装Java Darcula外观?   java“sort”属性做什么?   是否有支持移位插入的列表实现(Java)?   java Springboot安全性:登录期间密码不匹配   使用NetClient和JsonParser的java连接到服务器只解析第一条消息   java在使用XMLStreamWriter写入数据时将$或欧元等字符写入unicode格式