Editing CommunityData:Hyak Ikt (Deprecreated)
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 162: | Line 162: | ||
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||
import glob | import glob | ||
outfile = "many_Redir_Runs.txt" | outfile = "many_Redir_Runs.txt" | ||
infileDir = "/com/raw_data/complete_wmf_dumps-20180220/enwiki-20180301/" | infileDir = "/com/raw_data/complete_wmf_dumps-20180220/enwiki-20180301/" | ||
fileList = glob.glob(infileDir + "enwiki-20180301-pages-meta-history*.7z") #get all the 7z metahistory files | fileList = glob.glob(infileDir + "enwiki-20180301-pages-meta-history*.7z") #get all the 7z metahistory files | ||
#print(fileList) | |||
with open(outfile, 'w') as outFileHandle: | with open(outfile, 'w') as outFileHandle: | ||
for file in fileList: | for file in fileList: |