Youtube Comment Filter
Go to Store
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative ActorsYoutube Comment Filter
bot_kevin/youtube-comment-filter
Automation that filters and deletes your videos on YouTube according to the criteria specified in their comments.
Comment deleter
Delete comments that contain bad language or words that you do not want on YouTube.
How it works - api below
1You install the plug-in in the browser where you have a YouTube account and add the cookie you copied to the code. 2(https://chromewebstore.google.com/detail/copy-cookies/jcbpglbplpblnagieibnemmkiamekcdg) 3 4If you enter 0 in the maximum number of comments to be deleted, it will delete all comments that meet the criteria you are looking for.
https://chromewebstore.google.com/detail/copy-cookies/jcbpglbplpblnagieibnemmkiamekcdg
1You install the plug-in in the browser where you have a YouTube account and add the cookie you copied to the code. 2 3If you enter 0 in the maximum number of comments to be deleted, it will delete all comments that meet the criteria you are looking for.
Sample output
1[>] comment successfully deleted: 200 2 3At the same time, if you want to track the number of deleted comments more quickly, you can use here.
https://youtubelikecounter.com/#!/videoID
Easier API usage
1import { ApifyClient } from 'apify-client'; 2import fs from 'fs'; 3 4const client = new ApifyClient({ 5 token: '<YOUR_API_TOKEN>', 6}); 7 8var jsonCookie = [{ "domain": ".youtube.com", "hostOnly": false, "httpOnly": true, "name": "YSC", "path": "/" }] //Cookies of your YouTube account 9 10const input = { 11 "videoID": "V331QXXXX", // YouTube video id to check comments 12 "cookie": "" + await JSON.stringify(jsonCookie), 13 "proxyUrl_NoAuth": "http://user:pass@host:port", //This is a proxy for requests that are not connected to your YouTube account. So it's okay if it's bad and cheap. Therefore, it is recommended to enter a cheap proxy to avoid being blocked as spam. 14 "proxyUrl_Auth": "http://user:pass@host:port", // This is a proxy for requests that include your YouTube accounts. Preferably, I recommend using a medium quality proxy. preferably use a proxy from the same country as the country where you use your YouTube account. 15 "extraBlacklist": "f2cuk,fuc4k", //Bad words that you want deleted. 16 "whitelist": "wow,lol,fake", //Potentially bad words you don't want deleted 17 "maxCommentCount": 2 // If you want to check all messages enter 0 18}; 19 20(async () => { 21 22 const run = await client.actor("bot_kevin/Youtube-Comment-Filter").call(input); 23 24 if (await run.status == "FAILED") { 25 console.log("[x] Please check that the entered parameters and cookie are correct and up to date.") 26 } else if (await run.status == "SUCCEEDED") { 27 console.log("[✓] The request is successful, please manually check whether the comments have been deleted or not.") 28 } 29 30 console.log('[>] Results from dataset'); 31 const items = await client.dataset(run.defaultDatasetId).listItems(); 32 33 await fs.writeFileSync("comments.json", await JSON.stringify(items.items, null, 2)) //save all comments (.json) 34 console.log(items) // print all comments 35 36})();
Sample extract all comment (.json)
1[{ 2 "authorThumb": [ 3 { 4 "url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s48-c-k-c0x00ffffff-no-rj", 5 "width": 48, 6 "height": 48 7 }, 8 { 9 "url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s88-c-k-c0x00ffffff-no-rj", 10 "width": 88, 11 "height": 88 12 }, 13 { 14 "url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s176-c-k-c0x00ffffff-no-rj", 15 "width": 176, 16 "height": 176 17 } 18 ], 19 "author": "@testxxx1", 20 "authorId": "UCQ9LypAofceVJ-QhA1111", 21 "trackingId": "CIoBELZ1IhMIhOK2--rxhAMVujnWAB35_wb9", 22 "commentId": "UgwHtI5GAJCzPbBSs4141111", 23 "text": "cc", 24 "likes": "0", 25 "numReplies": 0, 26 "isOwner": false, 27 "isHearted": false, 28 "isPinned": false, 29 "hasOwnerReplied": false, 30 "time": "2 weeks ago", 31 "edited": false, 32 "replyToken": null, 33 "isVerified": false, 34 "isOfficialArtist": false, 35 "isMember": false, 36 "memberIconUrl": null, 37 "customEmojis": [] 38}, 39{ 40 "authorThumb": [ 41 { 42 "url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s48-c-k-c0x00ffffff-no-rj", 43 "width": 48, 44 "height": 48 45 }, 46 { 47 "url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s88-c-k-c0x00ffffff-no-rj", 48 "width": 88, 49 "height": 88 50 }, 51 { 52 "url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s176-c-k-c0x00ffffff-no-rj", 53 "width": 176, 54 "height": 176 55 } 56 ], 57 "author": "@mr.be2222", 58 "authorId": "UClcwKkXU_2gs1pQI3l11111", 59 "trackingId": "CIIBELZ1IhMIhOK2--rxhAMVujnWAB35_wb9", 60 "commentId": "Ugy3s8u921xprwraeDp4AaAB222", 61 "text": "cc", 62 "likes": "0", 63 "numReplies": 0, 64 "isOwner": false, 65 "isHearted": false, 66 "isPinned": false, 67 "hasOwnerReplied": false, 68 "time": "2 weeks ago", 69 "edited": false, 70 "replyToken": null, 71 "isVerified": false, 72 "isOfficialArtist": false, 73 "isMember": false, 74 "memberIconUrl": null, 75 "customEmojis": [] 76}, 77{ 78 "authorThumb": [ 79 { 80 "url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s48-c-k-c0x00ffffff-no-rj", 81 "width": 48, 82 "height": 48 83 }, 84 { 85 "url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s88-c-k-c0x00ffffff-no-rj", 86 "width": 88, 87 "height": 88 88 }, 89 { 90 "url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s176-c-k-c0x00ffffff-no-rj", 91 "width": 176, 92 "height": 176 93 } 94 ], 95 "author": "@poyraz62xx21", 96 "authorId": "UCjdFKXKSI3d8SZTn2Gs2x2xg", 97 "trackingId": "CJoBELZ1IhMIhI6H_OrxhAMVujn22x2", 98 "commentId": "UgwE2_xpoV7euTGSAj54AaABAg", 99 "text": "cc", 100 "likes": "0", 101 "numReplies": 0, 102 "isOwner": false, 103 "isHearted": false, 104 "isPinned": false, 105 "hasOwnerReplied": false, 106 "time": "2 weeks ago", 107 "edited": false, 108 "replyToken": null, 109 "isVerified": false, 110 "isOfficialArtist": false, 111 "isMember": false, 112 "memberIconUrl": null, 113 "customEmojis": [] 114}]
Developer
Maintained by Community
Categories