|
@ -42,9 +42,12 @@ if __name__ == "__main__": |
|
|
Logger.info("连接mysql成功") |
|
|
Logger.info("连接mysql成功") |
|
|
|
|
|
|
|
|
# 查询出所有Channel |
|
|
# 查询出所有Channel |
|
|
# channels = ChannelService.queryAllChannel() |
|
|
channels = ChannelService.queryAllChannel() |
|
|
# Logger.info("Channels length:{}".format(len(channels))) |
|
|
Logger.info("Channels length:{}".format(len(channels))) |
|
|
# for channel in channels: |
|
|
for channel in channels: |
|
|
# channel : Channel = channel |
|
|
channel: Channel = channel |
|
|
# # 通过channelId查询videos |
|
|
# 通过channelId查询videos |
|
|
# YouTubeUtil.getByChannelId(channel.channelId) |
|
|
Logger.info( |
|
|
|
|
|
f"Id:{channel.id} channelId:{channel.channelId} startTime:{startTime} endTime:{endTime}") |
|
|
|
|
|
YouTubeUtil.getByChannelId( |
|
|
|
|
|
channelId=channel.channelId, startTime=startTime, endTime=endTime) |
|
|