This commit is contained in:
熊潇 2025-04-29 18:40:44 +08:00
parent f8c5f7cd8c
commit ff53534c08
3 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@
"name": "@kevisual/social-xhs-api-server",
"type": "module",
"scripts": {
"start": "pm2 start ecosystem.config.mjs"
"pm2": "pm2 start ecosystem.config.mjs",
"start": "pm2 start --name xhs-api-server --interpreter python3 --env XHS_API_PORT=5006 -- server.py "
}
}

View File

@ -2,4 +2,5 @@ playwright
xhs
gevent
requests
flask
flask
dotenv

View File

@ -4,6 +4,7 @@ from flask import Flask, request
from gevent import monkey
from playwright.sync_api import sync_playwright
from dotenv import load_dotenv
import os
# 加载环境变量
load_dotenv()
monkey.patch_all()