File size: 308 Bytes
323d9d8
 
 
 
 
ce60d25
323d9d8
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import glob
import os

all_articles = glob.glob('./wiki/*.json')
file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
_TIMES = sorted(file_names)

# Write the string to a Python file
with open('configs.txt', 'w') as file:
    for time in _TIMES:
        file.write(time + '\n')