]> code.communitydata.science - covid19.git/commitdiff
Merge pull request #10 from makoshark/master
authorKaylea Champion <khascall@gmail.com>
Tue, 31 Mar 2020 19:23:36 +0000 (12:23 -0700)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 19:23:36 +0000 (12:23 -0700)
stop writing writing header to one-column list

wikipedia_views/scripts/fetch_daily_views.py
wikipedia_views/scripts/wikiproject_scraper.py

index 4f496fee7351963bc3d1ba5caad45da9de670c17..e3a2ff406d113754e9cd2e5d3401bb7917700c03 100755 (executable)
@@ -79,7 +79,6 @@ def main():
     t_Out = f"{outputPath}dailyviews{queryDate}.tsv"
 
     with open(articleFile, 'r') as infile:
-        next(infile) #skip header
         articleList = list(infile)
 
     j = []
index 2ee37428c0487a10a6f9417a6d1aefa5ab671314..9d209a98b5912e6a075ca643d514b7a7aaae3609 100755 (executable)
@@ -109,7 +109,6 @@ def main():
     #3 Saves the list to a file
 
     with open(outputFile, 'w') as f:
-        f.write("Article\n")
         f.write('\n'.join(articleNames)+'\n')
     logging.debug(f"Finished scrape and made a new article file at {datetime.datetime.now()}")
 

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