]> code.communitydata.science - covid19.git/blobdiff - wikipedia_views/scripts/fetch_daily_views.py
Read the whole input file before making api calls
[covid19.git] / wikipedia_views / scripts / fetch_daily_views.py
index 18bc01fdd512a7268d6377a7261be0a236701524..ab824c20db507d4a2c47fb064582d09b1ac08109 100755 (executable)
@@ -55,7 +55,7 @@ def main():
 
     with open(articleFile, 'r') as infile:
         next(infile) #skip header
-        articleList = infile
+        articleList = list(infile)
 
         j = []
 

Community Data Science Collective || Want to submit a patch?