Skip to content
Snippets Groups Projects
Commit dd54345e authored by nwarslan's avatar nwarslan
Browse files

code update

parent 7d99b9a4
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ def iterate(data):
continue
elif el[0] in de_en:
done.append(el[0])
with open('done.json','w') as f:
with open(DONE,'w') as f:
json.dump(done, f)
if i%100 == 0:
print(i, ' articles of ',len(data),' extracted')
......@@ -293,7 +293,7 @@ def iterate(data):
if i%100 == 0:
print(i, ' articles of ',len(data),' extracted')
done.append(el[0])
with open('done.json','w') as f:
with open(DONE,'w') as f:
json.dump(done, f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment