feat: 添加截图功能以记录视频处理任务
This commit is contained in:
parent
32a15d27ce
commit
a9b53e8c85
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user