Giter Site home page Giter Site logo

swipswaps / instalooter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from althonos/instalooter

0.0 1.0 0.0 963 KB

Another API-less Instagram pictures and videos downloader.

License: GNU General Public License v3.0

Python 98.10% HTML 1.75% Shell 0.16%

instalooter's Introduction

InstaLooter starme

Not all treasure's silver and gold, mate.

build repo versions format coverage doc grade license keepachangelog saythanks

InstaLooter is a program that can download any picture or video associated from an Instagram profile, without any API access. It can be seen as a re-implementation of the now deprecated InstaRaider developed by @akurtovic.

v1.0.0 was completely rewrote from scratch, and as such, will probably break compatibility with your homemade scripts. Meanwhile, great care was taken to keep the CLI as consistent as possible with the previous versions, so it'll hopefully feel like home.

Requirements

coloredlogs

Colored output

PyPI coloredlogs Source coloredlogs License coloredlogs
dateutil

Date manipulation

PyPI dateutil Source dateutil License dateutil
docopt

CLI arguments parsing

PyPI docopt Source docopt License docopt
fs

Filesystem handling

PyPI fs Source fs License fs
requests

HTTP handling

PyPI requests Source requests License requests
six

Python 2/3 compatibility

PyPI six Source six License six
tenacity

Retry until success

PyPI tenacity Source tenacity License tenacity
tqdm

Dynamic output in CLI

PyPI tqdm Source tqdm License tqdm
verboselogs

More detailed logs

PyPI verboselogs Source verboselogs License verboselogs

Installation

InstaLooter is available on PyPI to install with pip. If you are not familiar with the package management of the Python ecosystem, please see the Installation page of the documentation. Yet, you will probably end up using the following command:

pip install --user instalooter --pre

Usage

instalooter comes with its CLI:

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

See instalooter --usage for all possible uses, or instalooter --help for a complete usage guide.

Logging in and out

There are two ways to login on Instagram through instalooter:

  • use the login subcommand (instalooter login) to interactively login using your username and password.
  • give a --username (and, if you want, a --password) argument to any of the download commands.

In both cases, a session cookie will be created in a cache-specific folder. To delete it and close your session on the server, use the logout subcommand.

Examples

Download all pictures from the instagram profile in the current directory:

$ instalooter user instagram

Download the latest 20 pictures or videos tagged with python to /tmp:

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

Download a single post from an url in the ~/Pictures directory:

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

Use a configuration file to download from several account using custom parameters (see Batch mode):

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

See more on the Usage page of the online documentation.

instalooter's People

Contributors

althonos avatar henning-k avatar polyzen avatar hrxn avatar mohan3d avatar tgandor avatar bmass02 avatar dlh avatar gffde3 avatar abysmalbiscuit avatar mohamedim avatar susundberg avatar sutyrin avatar pseudosky avatar rlyons avatar st2mz avatar cebolan avatar dependabot[bot] avatar gitname avatar interruptinuse avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.