From a527c741be002ed197a2997900bff3caf32865a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=A7=89=20infominer?= Date: Fri, 22 Jan 2021 22:27:35 -0500 Subject: [PATCH] change path --- twscraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twscraper.py b/twscraper.py index 1617c90f..7ca8a092 100644 --- a/twscraper.py +++ b/twscraper.py @@ -28,7 +28,7 @@ startDate = days_before.strftime("%Y-%m-%d, %H:%M:%S") #### Open CSV + Write Column Names -fname = '/home/runner/work/decentralized-id.github.io/decentralized-id.github.io/_data/twitter/search_' + date_time + '.csv' +fname = '_data/twitter/search_' + date_time + '.csv' csvFile = open(fname, 'w+') csvWriter = csv.writer(csvFile) csvWriter.writerow(["Time","Link", "Urls", "UrlTitle", "UrlDesc", "UrlImg", "ImageUrls", "ReplyURL", "QuoteID", "QuoteImg", "QuoteUrl"]) @@ -221,7 +221,7 @@ for batch in batches: r = twitter.post(url, data=json.dumps(params_add)) print(r.json()) -file_name = "/home/runner/work/decentralized-id.github.io/decentralized-id.github.io/_posts/twitter/" + str(date_time) + '-twitter.md' +file_name = "_posts/twitter/" + str(date_time) + '-twitter.md' f = open(file_name,"w+") str1 = "---\n"