first commit
This commit is contained in:
0
bot.0.1/other_packages/used_programs/to_json/__init__.py
Executable file
0
bot.0.1/other_packages/used_programs/to_json/__init__.py
Executable file
0
bot.0.1/other_packages/used_programs/to_json/censorship.json
Executable file
0
bot.0.1/other_packages/used_programs/to_json/censorship.json
Executable file
3
bot.0.1/other_packages/used_programs/to_json/censorship.txt
Executable file
3
bot.0.1/other_packages/used_programs/to_json/censorship.txt
Executable file
@@ -0,0 +1,3 @@
|
||||
хуй
|
||||
блять
|
||||
пизда
|
||||
1
bot.0.1/other_packages/used_programs/to_json/name_dict.json
Executable file
1
bot.0.1/other_packages/used_programs/to_json/name_dict.json
Executable file
File diff suppressed because one or more lines are too long
1344
bot.0.1/other_packages/used_programs/to_json/name_dict.txt
Executable file
1344
bot.0.1/other_packages/used_programs/to_json/name_dict.txt
Executable file
File diff suppressed because it is too large
Load Diff
17
bot.0.1/other_packages/used_programs/to_json/to_json.py
Executable file
17
bot.0.1/other_packages/used_programs/to_json/to_json.py
Executable file
@@ -0,0 +1,17 @@
|
||||
import json
|
||||
ar = []
|
||||
with open('censorship.txt', encoding='utf-8') as read_file:
|
||||
for i in read_file:
|
||||
n = i.lower().split("\n")[0]
|
||||
if n != "":
|
||||
ar.append(n)
|
||||
with open('censorship.json', "w", encoding='utf-8') as write_file:
|
||||
json.dump(ar, write_file)
|
||||
|
||||
# with open('name_dict.txt', encoding='utf-8') as read_file:
|
||||
# for i in read_file:
|
||||
# n = i.lower().split("\n")[0]
|
||||
# if n != "":
|
||||
# ar.append(n)
|
||||
# with open('name_dict.json', "w", encoding='utf-8') as write_file:
|
||||
# json.dump(ar, write_file)
|
||||
Reference in New Issue
Block a user