Youtube Comment Filter
DeprecatedPricing
Pay per usage
Go to Apify Store

Youtube Comment Filter
DeprecatedAutomation that filters and deletes your videos on YouTube according to the criteria specified in their comments.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
bot
Maintained by CommunityActor stats
1
Bookmarked
1
Total users
1
Monthly active users
2 months ago
Last modified
Categories
Features
Full permissions
Share
Comment deleter
Delete comments that contain bad language or words that you do not want on YouTube.
How it works - api below
You install the plug-in in the browser where you have a YouTube account and add the cookie you copied to the code.(https://chromewebstore.google.com/detail/copy-cookies/jcbpglbplpblnagieibnemmkiamekcdg)If 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
You install the plug-in in the browser where you have a YouTube account and add the cookie you copied to the code.If 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
[>] comment successfully deleted: 200At 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
import { ApifyClient } from 'apify-client';import fs from 'fs';const client = new ApifyClient({token: '<YOUR_API_TOKEN>',});var jsonCookie = [{ "domain": ".youtube.com", "hostOnly": false, "httpOnly": true, "name": "YSC", "path": "/" }] //Cookies of your YouTube accountconst input = {"videoID": "V331QXXXX", // YouTube video id to check comments"cookie": "" + await JSON.stringify(jsonCookie),"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."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."extraBlacklist": "f2cuk,fuc4k", //Bad words that you want deleted."whitelist": "wow,lol,fake", //Potentially bad words you don't want deleted"maxCommentCount": 2 // If you want to check all messages enter 0};(async () => {const run = await client.actor("bot_kevin/Youtube-Comment-Filter").call(input);if (await run.status == "FAILED") {console.log("[x] Please check that the entered parameters and cookie are correct and up to date.")} else if (await run.status == "SUCCEEDED") {console.log("[✓] The request is successful, please manually check whether the comments have been deleted or not.")}console.log('[>] Results from dataset');const items = await client.dataset(run.defaultDatasetId).listItems();await fs.writeFileSync("comments.json", await JSON.stringify(items.items, null, 2)) //save all comments (.json)console.log(items) // print all comments})();
Sample extract all comment (.json)
[{"authorThumb": [{"url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s48-c-k-c0x00ffffff-no-rj","width": 48,"height": 48},{"url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s88-c-k-c0x00ffffff-no-rj","width": 88,"height": 88},{"url": "https://yt3.ggpht.com/WyIkG4nxwj9VLB2Pz-zi0GlxqLHWvqDn9BNihpxWksUufQHH6tnWND__=s176-c-k-c0x00ffffff-no-rj","width": 176,"height": 176}],"author": "@testxxx1","authorId": "UCQ9LypAofceVJ-QhA1111","trackingId": "CIoBELZ1IhMIhOK2--rxhAMVujnWAB35_wb9","commentId": "UgwHtI5GAJCzPbBSs4141111","text": "cc","likes": "0","numReplies": 0,"isOwner": false,"isHearted": false,"isPinned": false,"hasOwnerReplied": false,"time": "2 weeks ago","edited": false,"replyToken": null,"isVerified": false,"isOfficialArtist": false,"isMember": false,"memberIconUrl": null,"customEmojis": []},{"authorThumb": [{"url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s48-c-k-c0x00ffffff-no-rj","width": 48,"height": 48},{"url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s88-c-k-c0x00ffffff-no-rj","width": 88,"height": 88},{"url": "https://yt3.ggpht.com/z5EOMZ2eNOff4leF5yM31p8lMVPk_T30CshQKFYBhmgiVOWQsUQr=s176-c-k-c0x00ffffff-no-rj","width": 176,"height": 176}],"author": "@mr.be2222","authorId": "UClcwKkXU_2gs1pQI3l11111","trackingId": "CIIBELZ1IhMIhOK2--rxhAMVujnWAB35_wb9","commentId": "Ugy3s8u921xprwraeDp4AaAB222","text": "cc","likes": "0","numReplies": 0,"isOwner": false,"isHearted": false,"isPinned": false,"hasOwnerReplied": false,"time": "2 weeks ago","edited": false,"replyToken": null,"isVerified": false,"isOfficialArtist": false,"isMember": false,"memberIconUrl": null,"customEmojis": []},{"authorThumb": [{"url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s48-c-k-c0x00ffffff-no-rj","width": 48,"height": 48},{"url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s88-c-k-c0x00ffffff-no-rj","width": 88,"height": 88},{"url": "https://yt3.ggpht.com/6aLnC4bPSU6nQgvESSjJthxjRMtgipnaPYagFQ7sxgaHQvkDGFcBcq6dgb=s176-c-k-c0x00ffffff-no-rj","width": 176,"height": 176}],"author": "@poyraz62xx21","authorId": "UCjdFKXKSI3d8SZTn2Gs2x2xg","trackingId": "CJoBELZ1IhMIhI6H_OrxhAMVujn22x2","commentId": "UgwE2_xpoV7euTGSAj54AaABAg","text": "cc","likes": "0","numReplies": 0,"isOwner": false,"isHearted": false,"isPinned": false,"hasOwnerReplied": false,"time": "2 weeks ago","edited": false,"replyToken": null,"isVerified": false,"isOfficialArtist": false,"isMember": false,"memberIconUrl": null,"customEmojis": []}]