From b0cd55bb4fec71fc749839346ccf0dd0095e3e49 Mon Sep 17 00:00:00 2001 From: work Date: Fri, 18 Jul 2025 09:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=94=B9=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spider/task.py b/spider/task.py index 0425ce4..697c899 100644 --- a/spider/task.py +++ b/spider/task.py @@ -1115,11 +1115,6 @@ def playwright_set_user_profile(cookies, username=None, first_name=None, last_na retry_goto(page, url) page.locator('//div[@role="list"]/div').first.click() - if username: - page.click('//a[@aria-label="Username"]') - page.locator('//input').first.fill(username) - page.click('//span[text()="Done"]') - if first_name or last_name: if first_name and last_name: # 修改名称 @@ -1151,7 +1146,6 @@ def playwright_set_user_profile(cookies, username=None, first_name=None, last_na context.close() browser.close() return { - 'username': username, 'first_name': first_name, 'last_name': last_name, 'avatar_key': avatar_key,