|
|
|
@ -5,7 +5,7 @@ import csv
|
|
|
|
|
|
|
|
|
|
class CsvService(IFileService):
|
|
|
|
|
def save(self, filePath, videoList: list[BilibiliVideo]):
|
|
|
|
|
f = open("file_3.csv", "w", encoding="UTF-8", newline="")
|
|
|
|
|
f = open(filePath+".csv", "w", encoding="UTF-8", newline="")
|
|
|
|
|
csv_writer = csv.writer(f)
|
|
|
|
|
csv_writer.writerow(
|
|
|
|
|
["topNo", "bvId", "title", "url", "uploadTime", "viewCount", "likeCount", "coinCount", "favoriteCount",
|
|
|
|
|