taengstagram / instagram-livestream-downloader

Instagram Live Stream Downloader
MIT License
119 stars 37 forks source link

Chances to run the downloader 24/7? #6

Closed alyciattae closed 7 years ago

alyciattae commented 7 years ago

Before submitting an issue, make sure you have:

Purpose of your issue:

Describe your issue

Hi, is it possible to run the downloader 24/7? Would you mind taking time to make step-by-step instructions? Not so much a techie type of person. Just don't want to miss something from my faves whenever I'm out. Thank You!

dvingerh commented 7 years ago

You'll need to have your computer running day and night for this to work. if you have a NAS (Network Attached Storage) device /other device running on Linux you can run a bash script in tmux.

But since you're not a techie I'll assume you have the downloader set up on Windows. If you're on an Apple device these specific instructions don't apply but the process won't be that different.

To make a loop in a batch file you can use this:

cd c:\Livestream_dl
:loop
livestream_dl -u "username" -p "password" "iguser"
timeout 10 > nul
goto loop

Make a new text file and copy the above contents. Make sure to save as a .bat file.

I recommend you to cd to the directory first where you also save the livestreams to as shown in the batch example. I've found that if you use a config file you'll need to cd to the directory where the config file is located before running the livestream_dl command, so i recommend putting both the saved streams and your config file (if you use one) in the same folder.

If you want to run this script when your computer boots you can put the batch file in your startup folder (accessible by pressing Winkey + R in your keyboard, typing shell:startup and hitting Enter).

Read the last few replies here for more info: https://github.com/taengstagram/instagram-livestream-downloader/issues/5

alyciattae commented 7 years ago

Hi, I am using Mac Os X, I know you said these instructions don't apply or won't be that different. Would you mind giving me step-by-step instructions, but on mac? Thank you so much!

dvingerh commented 7 years ago

I've not worked with Apple computers before but I think it works the same as Mac OS is Unix-based so try following the instructions to make a bash file here (I cannot vouch for this but it seems like a decent guide): http://www.hackmac.org/articles/bash/bash-101-hello-world-and-a-little-further/

And instead of using the Hello World example code you put the following:

while true
do 
    livestream_dl -u "username" -p "password" "iguser"
    sleep 10
done

(use cd here as well to navigate to your config file's path if you use one)

I don't know if Mac OS has nano (a command line text editor) installed by default but alternatively you can follow this as well: https://www.youtube.com/watch?v=JqwiBnJ7F8g

To run a script on boot try this: http://stackoverflow.com/questions/6442364/running-script-upon-login-mac

Once again I've never used an Apple computer before so I can't vouch for these guides.

alyciattae commented 7 years ago

I've tried (not too sure if I did it right though), but it says livestream_dl: error: unrecognized arguments: sleep 10?

I just hope the thegoguma/ taengstagram will make a thorough instructions on usage section or somewhere else.

dvingerh commented 7 years ago

sleep 10 needs to be on a new line. It's supposed to look like this (click to enlarge): screenshot from 2017-04-26 13-40-43

I just hope the thegoguma/ taengstagram will make a thorough instructions on usage section or somewhere else.

Don't count on it, Github is for project version control and the project's current documentation is enough to work with for most other users / developers. Basic terminal / bash scripting knowledge is generally a must-have for projects like these.

taengstagram commented 7 years ago

@alyciattae Have you done what was advised by @notcammy?

If you have, but still getting errors, report back step-by-step what you've done. You probably got an intermediate step wrong.

taengstagram commented 7 years ago

Closing due to inactivity.