feat: 添加截图功能以记录视频处理任务

This commit is contained in:
晓丰 2025-06-04 21:14:09 +08:00
parent 32a15d27ce
commit a9b53e8c85

View File

@ -110,7 +110,8 @@ class DailymotionClient:
1) please help remove these videos 1) please help remove these videos
2) The drama series titles are {} 2) The drama series titles are {}
""".format(title) """.format(title)
print(f"开始处理任务") file_path = f'screenshots/{str(int(time.time()))}_{title}_{link.split("/")[-1]}.png'
self.page.screenshot(path=file_path)
resports = self.page.locator('li.blocks-item:nth-child(8)') resports = self.page.locator('li.blocks-item:nth-child(8)')
resports.click() resports.click()