1
0
Fork 0
mirror of https://github.com/Findus23/nonsense.git synced 2024-09-19 16:03:50 +02:00
nonsense/utils.py
2018-01-20 21:26:30 +01:00

14 lines
285 B
Python

import glob
import json
def crawl_data():
all_data = []
for file in glob.glob("crawlData/*.json"):
with open(file, "r") as inputfile:
all_data.extend(json.load(inputfile))
return all_data
if __name__ == "__main__":
print(crawl_data().__len__())