Replies: 2 comments 7 replies
-
another idea - if someone wrote tutorial how to use YoutubeSpammerPurge on Android with Termux will possibly extend user base. install Termux pkg install python extract code to some directory say top level directory YouTubeSpammerPurge along with Download folder (using for ex Total Commander or Solid Explorer ): pip install -r requirements.txt pkg install python-tkinter python YouTubeSpammerPurge.py (btw for Android users much shorter name would be preferable (but there is import in gui.py, so it is not just about renaming YouTubeSpammerPurge.py, change in gui.py is required ) Termux should be always exited (or it will continue to run) ps maybe a warning should be that someone needs to feel very confident Android user before making all these steps |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I think current utility is more or less feature complete (mostly I use hold action on spammer ids), if only youtube made some more efforts to stop spamming....
First feature I could think about is to compare channel user profile picture and spammer profile picture (quite often scammers use channel owners profile picture) - it's possible to request profile pictures via api and there are some libraries to compare images (the fast one is https://github.com/JohannesBuchner/imagehash
from PIL import Image
import requests
from io import BytesIO
import imagehash
...
get thumbnail url - channels list snippet.thumbnails.default.url
...
response = requests.get(url)
ownerImg = Image.open(BytesIO(response.content))
or
ownerImg = Image.open(requests.get(url, stream=True).raw)
ownerHash = imagehash.average_hash(ownerImg)
...
tesHash = imagehash.average_hash(testUserImg)
if (ownerHash == testHash):
#same profile image found on user account
), one complication here - rarely legit users assume channel owner user profile picture (but then, they should know possible consequences, also from channels it's possible to get channel creation date snippet.publishedAt - recently created profiles are more probable scammers)
If someone creates web app interface with either Flask or Django what comes to mind is to use service credentials
https://developers.google.com/identity/protocols/oauth2/service-account the problem is youtube won't support
https://developers.google.com/youtube/v3/guides/authentication a link of service credentials to user account
(so it would not be possible to ask users of utility to just add some account as their moderators)
but seems there is a way around (an old C# question on stackoverflow https://stackoverflow.com/questions/64975887/google-oauth2-authorization-on-linux-headless-server-net, possibly this piece of code should be tried first before moving to develop headless webapp )
if no additional quota is granted, possibly scanning should be implemented via http requests and only hold actions are performed via api ( deletion of 10 000 spammer posts per day is not bad after all )
there are all sorts of complications with the approach (youtube denying access for server, spammers attacking server with DoS attacks, users not adding account to moderators, etc ) but still potentially it might make the utility to be much more widely used by channel owners (the use of service might also include provision to make reference to author channel or utility or making donation for server support and maintenance etc or pay for monitoring channel for existing spammers (or spammers with channel owners profile pictures).
Beta Was this translation helpful? Give feedback.
All reactions