This is a puppeteer script which will open YouTube studio and find videos with copyright and remove them automatically. It's same process as user manually clicking buttons but puppeteer allows automate that.
-
start chrome in remote debugging mode. If you are using windows then batch file is attached. For other OS you need to do it manually. make sure you do it on port 9222
another things to make sure is that there should be any chrome instance running prior to running this one. It will not open up the port if instance is already running. I'd advise you to keep two profiles, One for bot and another for work
-
make sure you are logged in and switched to proper channel in youtube before starting this script
-
Git clone, switch to folder and Do
npm install
-
(optional)
npx playwright install chromium
if you don't have chrome installed -
you can start the script either by terminal with command
node index.js
or from vscode withF5
-
Keep the chrome tab focused and keep your mouse pointer outside of chrome window. lot of things works on hover event your mouse pointer can break things
Keep in mind that the script is designed to work on more then one videos. Make sure you have more then two videos with copyright to successfully run this script.
I want to say I have made an AI which automatically creates interesting videos and uploads to a youtube account I created but that would be a lie. It's not AI it's just a script with bunch of statements.
Although there is an API to upload videos to a youtube, there are none to remove copyrights. Uploader will have to manually go to studio.youtube.com and remove part of the video one-by-one. yes one-by-one. There is not even a option to do multiple at once. 🤷♂️
That's why I created this. Upload script will keep uploading videos as visiblity private and this one will keep removing copyrighted parts from the videos and make them pubilc.
Got more questions? ask here