Another API-less Instagram pictures and videos downloader
Project description
Not all treasure’s silver and gold, mate.
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 |
|||
dateutil |
Date manipulation |
|||
docopt |
CLI arguments parsing |
|||
fs |
Filesystem handling |
|||
requests |
HTTP handling |
|||
six |
Python 2/3 compatibility |
|||
tenacity |
Retry until success |
|||
tqdm |
Dynamic output in CLI |
|||
verboselogs |
More detailed logs |
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file instalooter-2.4.4.tar.gz
.
File metadata
- Download URL: instalooter-2.4.4.tar.gz
- Upload date:
- Size: 450.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9b4a948702361a161cc42e58857e3a6c9dafd9e22568b07bc0d0b09c3c34a9 |
|
MD5 | 34eb12424654f11f1b5cd772f0a1505e |
|
BLAKE2b-256 | 3013907e6aaba6280e1001080ab47e750068ffc5fb7174203985b3c9d678e3f2 |
File details
Details for the file instalooter-2.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: instalooter-2.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 45.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d477fb12c2aa3fa3951218ef175d817cf556b5d971d11a7fe78d42368e0889 |
|
MD5 | ba34cd50d69f46ea43cfd0911b78c3db |
|
BLAKE2b-256 | 4bac050c36a8384b4aeda24f12faaf677e17921db161930167da9d75faad9d09 |