Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Fetch the yt comments using this tool
- https://github.com/egbertbouman/youtube-comment-downloader
- After installing the dependencies
- Run this command
- python .\downloader.py --youtubeid WX8dswSDQqM --output file.json
- Finally run this script
- """
- texts = []
- ammount = 0;
- for line in open("file.json", encoding='utf8'):
- texts.append(line)
- size = len(texts)
- for line in texts:
- if ('ttk' in str(line).lower() or 'revert' in str(line).lower() or '5.2' in str(line).lower() or 'cheat' in str(line).lower() or 'implement' in str(line).lower() or 'balance' in str(line).lower() or 'team' in str(line).lower() ):
- ammount +=1
- print('Total comments : ', size)
- print('Ammount of complaints : ', ammount)
- print('Percentage : {:0.2f}%'.format(ammount/size*100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement