From 5d420e9ab55753c171f8f9f01ed6ac75bcb5d489 Mon Sep 17 00:00:00 2001 From: Timmoc Date: Thu, 25 Apr 2024 21:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E5=B0=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/SpyderController.py | 2 +- controller/UIController.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/SpyderController.py b/controller/SpyderController.py index dcdae53..2a1d2ee 100644 --- a/controller/SpyderController.py +++ b/controller/SpyderController.py @@ -10,7 +10,7 @@ from entity.BilibiliVideo import BilibiliVideo class SpyderController: - # Bilibili视频爬虫控制器,打开网页,爬取BilibiliVideo.py中的数据,将其下载下来,保存为csv文件 + # Bilibili视频爬虫控制器,打开网页,爬取符合BilibiliVideo.py中的数据,将其下载下来,保存为csv文件 def getBilibiliVideoList(self, videoCount, threadCount, waitTime): """ 整个爬虫的调用程序 diff --git a/controller/UIController.py b/controller/UIController.py index 284ff6b..e94d3cb 100644 --- a/controller/UIController.py +++ b/controller/UIController.py @@ -20,9 +20,9 @@ class UIController: print("zzr1") #一些属性 ##csv文件路径 - csv_path=".\csv_file" + csv_path="./csv_file" ## - excel_path=".\excel_file" + excel_path="./excel_file" # 创建主窗口 root = tk.Tk() root.title("Python UI") @@ -113,7 +113,7 @@ class UIController: button_stop.grid(row=4, column=1,sticky=tk.W) button_save_to_excel = tk.Button(root, text="save to excel", command=button_save_to_exce_click) button_save_to_excel.grid(row=5, column=1, sticky=tk.W) - button_save_to_csv = tk.Button(root, text="save to excel", command=button_save_to_csv_click) + button_save_to_csv = tk.Button(root, text="save to csv", command=button_save_to_csv_click) button_save_to_csv.grid(row=6, column=1,sticky=tk.W) # 创建一个带展示框 tree = ttk.Treeview(root, columns=("bvid", "title","url","upload","topNo","viewCount","likeCount","coinCount","favorite","commentCount","bolletCount","creatorld","creatorName","createFanCount"))