change path

This commit is contained in:
⧉ infominer 2021-01-22 22:27:35 -05:00
parent e29624a7d1
commit a527c741be

View File

@ -28,7 +28,7 @@ startDate = days_before.strftime("%Y-%m-%d, %H:%M:%S")
#### Open CSV + Write Column Names #### 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+') csvFile = open(fname, 'w+')
csvWriter = csv.writer(csvFile) csvWriter = csv.writer(csvFile)
csvWriter.writerow(["Time","Link", "Urls", "UrlTitle", "UrlDesc", "UrlImg", "ImageUrls", "ReplyURL", "QuoteID", "QuoteImg", "QuoteUrl"]) 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)) r = twitter.post(url, data=json.dumps(params_add))
print(r.json()) 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+") f = open(file_name,"w+")
str1 = "---\n" str1 = "---\n"