Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Another API-less Instagram pictures and videos downloader

Project description

Not all treasure’s silver and gold, mate.

build repo versions format coverage doc requirements grade license

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.

Requirements

BeautifulSoup HTML parsing PyPI BeautifulSoup Source BeautifulSoup License BeautifulSoup
docopt CLI arguments parsing PyPI docopt Source docopt License docopt
progressbar2 Dynamic output in CLI PyPI progressbar2 Source progressbar2 License progressbar2
requests HTTP handling PyPI requests Source requests License requests
six Python 2/3 compatibility PyPI six Source six License six
dateutil Date manipulation PyPI dateutil Source dateutil License dateutil
hues Colored output PyPI hues Source hues License hues

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 online documentation. Yet, you will probably end up using the following command:

pip install --user instaLooter

Usage

InstaLooter comes with its CLI:

$ instaLooter <username> [<directory>] [options]
$ instaLooter (hashtag <hashtag> <directory> [options]
$ instaLooter post <post_token> <directory> [options]
$ instaLooter batch <batch_file>

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 the system temporary 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 instagram

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

$ instaLooter hashtag python /tmp -n 20 -v -c MYLOGIN

Download a single post from an url in the current directory:

$ instaLooter post "https://www.instagram.com/p/BFB6znLg5s1/" .

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for instalooter, version 0.12.0
Filename, size File type Python version Upload date Hashes
Filename, size instaLooter-0.12.0-py2.py3-none-any.whl (23.8 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size instaLooter-0.12.0-py3.6.egg (19.8 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size instaLooter-0.12.0.tar.gz (36.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page