From 239b16b938b0a0bf2374592c5193f2f5d6805038 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Thu, 12 Jun 2025 23:08:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0report=5Ffollow=5Fup?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BB=A5=E5=A4=84=E7=90=86=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E4=BE=B5=E6=9D=83=E6=8A=A5=E5=91=8A=E7=9A=84=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report_video.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/report_video.py b/report_video.py index d56bef7..24f1e18 100644 --- a/report_video.py +++ b/report_video.py @@ -266,6 +266,24 @@ class DailymotionClient: return file_path, report_id, subsequent_status, timestamp + @require_login + def report_follow_up(self, report_id: str): + txt = "I am the authorized agent of Beijing iQIYI Technology Co., Ltd., responsible for dealing with unauthorized overseas distribution of pirated videos of our works.We have confirmed that the above links contain infringing content and we insist on requesting to takedown. Thank you!" + self.page.goto("https://faq.dailymotion.com/hc/en-us/requests/{}".format(report_id), timeout=30000) + self.page.wait_for_load_state("networkidle", timeout=3000) + + status_raw = self.page.locator("span.status-label").text_content() + subsequent_status = status_raw.strip().lower() if status_raw else None + if "awaiting your reply" in subsequent_status: + pass + # TODO: 处理其他状态 + elif "open" in subsequent_status: + pass + # 处理 Open 状态 + elif "solved" in subsequent_status: + # 处理 Solved 状态 + return + def close(self): try: self.page.close()