instaloader icon indicating copy to clipboard operation
instaloader copied to clipboard

Night run auto shutdown pc on fail or finish

Open Muggeren opened this issue 3 years ago • 7 comments

Hello everyone. I am currently using the Windows version of Instaloader.

I would like to make it run overnight, and if it encounter either failure like an 400 code or it finish, i want it to shutdown the pc.

My extra question is, if this is possible, and i want to resume it the next day, how do i do that? I just tried to test "--resume-prefix" but im bit confused how it works. ive tried "instaloader --login=USERNAME --tagged --highlights --resume-prefix" but it asks for an extra argument? I added a target after the line but thats the same as without "--resume-prefix"?

Hope you guys can understand and help me. Thanks alot, Muggeren.

Muggeren avatar Aug 24 '22 22:08 Muggeren

How about creating a batch file containing the call of instaloader using --abort-on and as second command shutdown to close down your pc? but be aware that you have to log the output to see if it was successful or ended with an error.

--resume-prefix is for renaming the resume file, see manual: https://instaloader.github.io/cli-options.html#cmdoption-resume-prefix

Showmaster3000 avatar Aug 25 '22 23:08 Showmaster3000

use a unix system

lx30011 avatar Aug 26 '22 08:08 lx30011

How about creating a batch file containing the call of instaloader using --abort-on and as second command shutdown to close down your pc? but be aware that you have to log the output to see if it was successful or ended with an error.

--resume-prefix is for renaming the resume file, see manual: https://instaloader.github.io/cli-options.html#cmdoption-resume-prefix

Cant seem to find out how to use the resume function

Muggeren avatar Aug 26 '22 11:08 Muggeren

use a unix system

I have no experince in that, but ill look at it, thanks.

Muggeren avatar Aug 26 '22 11:08 Muggeren

Cant seem to find out how to use the resume function

Reading the manual I linked above tells you

This feature is enabled by default for targets where it is supported

And I think, anything else you need to know is also descibed there.

Showmaster3000 avatar Aug 26 '22 14:08 Showmaster3000

Cant seem to find out how to use the resume function

Reading the manual I linked above tells you

This feature is enabled by default for targets where it is supported

And I think, anything else you need to know is also descibed there.

So to continue, all i have to do is using the same code as the last run?

Muggeren avatar Aug 26 '22 16:08 Muggeren

There has been no activity on this question for an extended period of time. This issue will be closed after further 14 days of inactivity.

github-actions[bot] avatar Sep 11 '22 14:09 github-actions[bot]