-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtubechecker.py
77 lines (62 loc) · 2.93 KB
/
youtubechecker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import requests
import csv
import contextlib
import os
print("""
__ __ _____ _ _ _______ _ _ ______ _______ _______ _ _ _______ _______ _ _ _______ ______
\_/ | | | | | | | |_____] |______ ___ | |_____| |______ | |____/ |______ |_____/
| |_____| |_____| | |_____| |_____] |______ |_____ | | |______ |_____ | \_ |______ | \_
______ __ __
|_____] \_/
|_____] |
_______ _______ _______ ______ ______ __ __ _____ ______ ______
|______ | |_____| |_____/ |_____/ \_/ ___ | | | |_____/ | \
______| | | | | \_ | \_ | |_____ |_____| | \_ |_____/
""")
try:
f = open('wordlist.csv','r')
f.close()
except FileNotFoundError:
url = 'https://docs.google.com/spreadsheets/d/1ozg1Cnm6SdtM4M5rATkANAi07xAzYWaKL7HKxyvoHzk/gviz/tq?gid=674179785&tqx=out:csv'
r = requests.get(url)
wordlist = open('wordlist.csv', 'w')
wordlist.write(r.text)
wordlist.close()
print("list downloaded")
finally:
print("wordlist check done :3")
print("""
Usage: python3 youtubechecker.py
Description: Run the title or description text of your Youtube video through the list to better anticipate demonetization.
Note: to update the list use "rm wordlist*" and rerun.
""")
try:
f = open("wordlist_clean","r")
f.close()
except FileNotFoundError:
with open("wordlist.csv", "r", newline="") as o :
with open("wordlist_clean", "w") as f:
reader = csv.reader(o, delimiter=",")
with contextlib.redirect_stdout(f):
for row in reader:
print(row[0])
finally:
print("wordlist cleanup check done :3")
# input
inpuT = input('Input your title or description here : ')
i = inpuT.lower().split(' ')
# compare
badword_list = open('wordlist_clean').read().splitlines()
flag = 0
for word in i:
if (word in badword_list) == True:
print(word)
#print("Change your words!")
flag = 1
elif word not in badword_list:
flag = flag
if flag == 0 :
print("$$$ Yay, Youtube should pay! $$$")
print("Such polite! :3")
else :
print("Change your words! >:3 ")