I am trying to use to automate the removal of spam comments from my YouTube videos. YouTube still does not at this date have an API for the removal of spam comments. I only want to automate the removal of spam comments from my videos on my channel. I have natural language processing experience and the patterns I detect in the spam comments would make it easy for me to remove them. I only need to be able to log into my account manually and then use the Selenium and some code to remove the annoying spam comments.
Please note these points:
- I am not using a headless version of Selenium/Chrome. I am running a version of ChromeDriver that automates a full Chrome browser instance.
- I am logging in manually by typing in my user name and password myself directly into the browser page's input elements.
So something in the user agent, or a flag ChromeDriver sets, or something else is triggering the rejection?
I did a lot of web searching including on SO and most of the message regarding detection have to do with using a headless version of Selenium or certain input patterns that identify an automated login attempt. As I stated above, I am doing neither of those things since before I trigger my automation code, I login manually. Also I have seen some references to an "undetectable" chrome driver, but is that a trustworthy item and does it only work with a headless version of Selenium?
Can someone tell me how to fix this? I'm really tired of manually deleting the spam comments.