How I solved my YouTube Problem by writing code..
Tech Raj
Check out Masai School - i-Program Backend Development: https://www.masaischool.com/courses/backend?utm_source=YT_TechRaj1&utm_medium=video1&utm_campaign=Influencer
i-Program Full Stack Web Development: https://www.masaischool.com/courses/full_stack_part?utm_source=YT_TechRaj2&utm_medium=video2&utm_campaign=Influencer2
I'm tired of these spam comments under my videos. They are made by real people and not bots. Unfortunately, YouTube doesn't even recognize and automatically hold these spam comments for review or directly delete them. So I had to do something on my own to fix this.
I decided to write a bot that will automatically retrieve the recent comments made under my videos, and then goes through each comment and predicts if it is a spam comment or not. If it is a spam comment, the bot deletes (or rejects) the comment.
I created a Machine Learning model and trained it so that it can distinguish between a spam comment and a normal (not spam) comment. I used the Multinomial Naive Bayes Algorithm to build my model. It rocks!
But, there is a quota limitation for the YouTube Data API, and I'm only allowed to make calls that do not cost more than 10,000 units per day. So, I had to even limit by bot as I can't exceed my quota limit or the API doesn't respond to my requests (listing comments , and deleting them). Anyway, I wrote the bot in such a way that it can delete the maximum comments it can in a day without exceeding the quota limit. It also sends me notifications on discord about how many comments it deleted in a particular time period, and how much quota is still left. I finally deployed it to Google Cloud so that it can run without any interruptions and continue to remove spam comments under my videos.
Join my discord server: https://discord.gg/7h2Eb7y Follow me on Instagram: https://instagram.com/teja.techraj
Like my Facebook Page: https://fb.com/techraj156 Website: https://techraj156.com Blog: https://blog.techraj156.com
SUBSCRIBE for more awesome content! Thanks for watching! Cheers! ... https://www.youtube.com/watch?v=oGlXL4Z_894
213482012 Bytes