Not all treasure's silver and gold, mate.
Fork of InstaLooter to collect (meta)data from posts
- fixed commentscount in template
- added is ad, is video, #hashtags, year, month, day
- more throtle for each request to stay within instragram rate limits
- added option to export to csv file, including batch mode
- fixed timeframe option in batch mode
- default jobs changed to 1
- added directory option in batch mode, no more requirement to specify a directory for each user
- fixed error when post not available/connection failed
- removed extended option
- added option to store profile data in csv file, and noposts option in batch mode
- added rotatecmd option in batch mode. The command is executed as os.system call so that is possible to change IP
- added rotateip option in batch mode. The amount of requests done before rotatecmd is executed
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.
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
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.
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.
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.