Merge remote-tracking branch 'origin/UIController'

main
Timmoc 9 months ago
commit fee10995eb

@ -5,7 +5,7 @@ from entity.BilibiliVideo import BilibiliVideo
from service.IFileService import IFileService
from service.CsvService import CsvService
from service.ExcelService import ExcelService
import re
@ -50,11 +50,7 @@ class UIController:
threadCount=eval(threadCount)
else:
return print("thread count is not num ")
if waitTime.isdigit():
waitTime=eval(waitTime)
else:
return print("waitTime is not num")
#创建 SpyderController对象调用其函数
waitTime=float(waitTime)
SpyderController=SC.SpyderController()
self.scRuslt_data=SpyderController.getBilibiliVideoList(videoCount,threadCount,waitTime)
@ -72,6 +68,7 @@ class UIController:
# self.scRuslt_data=text_date
if self.scRuslt_data is None:
return print("爬取数据实体类为空")
index=0
for data in self.scRuslt_data:
theList = []
theList.append(data.bvId)
@ -89,6 +86,7 @@ class UIController:
theList.append(data.creatorId)
theList.append(data.creatorName)
theList.append(data.creatorFanCount)
theList.append(index)
tree.insert("", "end", values=theList)
def button_save_to_exce_click():
@ -139,7 +137,7 @@ class UIController:
tree.heading("#2", text="title")
tree.heading('#3', text="url")
tree.heading('#4', text="uploadtime")
tree.heading('#5', text="uploadtimeTexT")
tree.heading('#5', text="uploadtimeText")
tree.heading('#6', text="topNo")
tree.heading('#7', text="ViewCount")
tree.heading('#8', text="likeCount")

Loading…
Cancel
Save