CORPUS Work

This commit is contained in:
Fred Boniface 2023-02-11 17:40:48 +00:00
parent 50387bc6b2
commit 5b3965d50e

View File

@ -18,12 +18,8 @@ def fetch():
return zlib.decompress(response.content, 16+zlib.MAX_WBITS)
def removeEmpty(list):
for item in list:
if item["3ALPHA"] != ' ' and item["STANOX"] != ' ':
item.pop("UIC")
item.pop("NLCDESC16")
item.pop("NLC")
cleanList.append(item)
for dict in list:
print(dict)
ORIGINAL METHOD FROM FILE: