Screenshot_1.png
Screenshot_2.png
Когда я вписываю вместо переменной, скрин сохраняется, но мне как-то нужно получить название открытой папки с профилем, чтобы сохранить скриншот с названием папки в которой работаем
Try printing ( with log) the command you are trying to execute, run it in a seperate command line to see if it's working properly.
since it's related to input I am suspecting the problem is with the youtube url you are providing