Auto-Stream-Recording-Twitch
Auto-Stream-Recording-Twitch copied to clipboard
multiple users?
Hello I have been using your program recently and was wondering if you would add the ability to scan for more than one streamer and download as it works really well currently. Sorry its not an issue but not sure how to ask.
You can run multiple scripts for different users without changing source code using command line:
python record.py -u USERNAME
This is really well way to record any amount of streamers at the same time.
I don't think that scan for multiple users in one script will be a good idea.
And by the way now I'm working on GUI version of this script. This feature will be available only in GUI version.
Ah ok thanks looking forward to GUI version as well.
You can also use this PowerShell script to make it easier:
$usernames = "username1", "username2", "username3"
foreach ($username in $usernames)
{
Start-Process -FilePath "cmd.exe" -ArgumentList "/k python record.py -u $username" -WindowStyle Minimized
}
Change record.py
to your python script filename. Save this script in your python script directory as filename.ps1
and run with PowerShell
OR you can use bat file for this:
@echo off
setlocal enabledelayedexpansion
set usernames[0]=username1
set usernames[1]=username2
set usernames[2]=username3
for /l %%n in (0,1,2) do (
start /min cmd.exe /k python record.py -u !usernames[%%n]!
)
Add username without any spaces! Save as filename.bat
in python script directory.
Actually, I prefer something like this:
$usernames = "username1", "username2"
$time = Get-Date -Format "yyyyMMdd_(HH-mm)"
foreach ($username in $usernames)
{
Write-Host "Checking for $($username)."
Write-Host "Path to log: D:\twitch\logs\$($time)_$($username).log`n"
Start-Process -FilePath "python" -ArgumentList "record.py -u $username" -NoNewWindow -RedirectStandardOutput "D:\twitch\logs\$($time)_$($username).log" -RedirectStandardError "D:\twitch\logs\error_logs\$($time)_$($username)_error.log"
}
Change record.py
to your python script filename.
You have to create 2 folders: \logs\
and \logs\error_logs\
It won't make additional windows and will save all logs into .log
file for each streamer and you'll be able to check them later if needed.