instaLooter
supports a batch mode for use cases that are more requiring than
just download from a profile once or twice. To use it, you must specify a
batch config file to the CLI. The file is in the Python configuration format,
very close to the Windows INI format.
A config file contains at least one section, but can contain more if needed.
A section is organised as shown below, with a header and key-value pairs using
the =
sign:
[my section header]
key = value
other_key = other_value
Users can be specified in the users parameter of each section, and hashtags
in the hashtags parameter. Those sections take a key: value
pair per line,
where key is the name of the user, and value the path to the directory where
the medias will be downloaded. For instance:
[Video Games]
users =
borderlands: /tmp/borderlands
ffxv: /tmp/ffxv
hashtags =
nierautomata: /tmp/nier
[Music]
users =
perm36 : ~/Music/Perm36
Each section can be provided with a username
and a password
parameter:
instaLooter login
for instance, or the session
of the previous section).username
is given, instaLooter
will interactively ask for the
associated password and then login.username
and password
are given, then instaLooter
will
logout from any previous session and login quietly.Each section can be given the same parameters as the command line:
add-metadata
get-videos
jobs
16
template
{id}
videos-only
quiet
new
num-to-dl
dump-json
dump-only
extended-dump
For instance, to download 3 new videos from #funny
and #nsfw
:
[Vids]
videos-only = true
new = true
num-to-dl = 3
hashtags =
funny: ~/Videos
nsfw: ~/Videos
Warning
This feature may not be completely functional yet ! I would say that it is
still in beta, were the whole instaLooter
program not in beta too :D.
Please report any bugs caused by this feature to the Github issue tracker, adding the configuration file as an attachment!