@@ -33,7 +33,6 @@ class CookieGenerator:
return False
-
def generate_cookie(self):
"""生成一个 Cookie """
with sync_playwright() as p:
@@ -15,7 +15,7 @@ pip install -r requirements.txt
# 检查Playwright浏览器
echo "🔍 检查浏览器..."
-python3 -c "from cookie_generator import check_environment; exit(0 if check_playwright_browser() else 1)"
+python3 -c "from cookie_generator import CookieGenerator; exit(0 if CookieGenerator().check_playwright_browser() else 1)"
if [ $? -ne 0 ]; then
echo "🔄 安装 Playwright 浏览器..."