zhangliang 2 週間 前
コミット
bd3381f453
2 ファイル変更1 行追加2 行削除
  1. 0 1
      cookie_generator.py
  2. 1 1
      run.sh

+ 0 - 1
cookie_generator.py

@@ -33,7 +33,6 @@ class CookieGenerator:
             return False
 
 
-
     def generate_cookie(self):
         """生成一个 Cookie """
         with sync_playwright() as p:

+ 1 - 1
run.sh

@@ -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 浏览器..."