stop writing writing header to one-column list
This feels like it's asking for trouble. Description of the contents of the list is in the filename.
This commit is contained in:
parent
09d171608f
commit
72bf7bcd37
@ -79,7 +79,6 @@ def main():
|
|||||||
t_Out = f"{outputPath}dailyviews{queryDate}.tsv"
|
t_Out = f"{outputPath}dailyviews{queryDate}.tsv"
|
||||||
|
|
||||||
with open(articleFile, 'r') as infile:
|
with open(articleFile, 'r') as infile:
|
||||||
next(infile) #skip header
|
|
||||||
articleList = list(infile)
|
articleList = list(infile)
|
||||||
|
|
||||||
j = []
|
j = []
|
||||||
|
@ -109,7 +109,6 @@ def main():
|
|||||||
#3 Saves the list to a file
|
#3 Saves the list to a file
|
||||||
|
|
||||||
with open(outputFile, 'w') as f:
|
with open(outputFile, 'w') as f:
|
||||||
f.write("Article\n")
|
|
||||||
f.write('\n'.join(articleNames)+'\n')
|
f.write('\n'.join(articleNames)+'\n')
|
||||||
logging.debug(f"Finished scrape and made a new article file at {datetime.datetime.now()}")
|
logging.debug(f"Finished scrape and made a new article file at {datetime.datetime.now()}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user