源码地址https://github.com/ZhuLinsen/daily_stock_analysis 日期20260311
python 3.11
修改requirements.txt
newspaper4k>=0.9.5 # Article extraction

安装conda环境,见上一篇文章
导入后在命令行窗口运行命令:激活 conda activate daily_stock_analysis_ql-main

python main.py --webui
报错则根据提示安装对应的依赖包
pip install lark-oapi>=1.0.0 -i https://mirrors.aliyun.com/pypi/simple/
pip install jsonpath -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip install curl-cffi -i https://mirrors.aliyun.com/pypi/simple/
pip install akshare -i https://pypi.tuna.tsinghua.edu.cn/simple
ModuleNotFoundError: No module named 'yfinance'
sudo pip install yfinance -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install efinance -i https://mirrors.aliyun.com/pypi/simple/
可能错误
pip install newspaper4k
brew install libxml2 libxslt openssl
配置
TUSHARE_TOKEN=
https://tushare.pro/weborder/#/login?reg=662633

配置
TAVILY_API_KEYS=tvly-dev-
https://app.tavily.com/home 坑得很,一定要先注册再登录,否则一直在输入密码

完整配置(删除了部分key)
STOCK_LIST=601222
OPENAI_API_KEY=sk-580
OPENAI_BASE_URL=https://api.deepseek.com/v1
OPENAI_MODEL=deepseek-chat
OPENAI_TEMPERATURE=0.7
WECHAT_WEBHOOK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1413
AKSHARE_SLEEP_MIN=5.0
AKSHARE_SLEEP_MAX=15.0
MAX_RETRIES=5
TUSHARE_TOKEN=ddc5bd72309
SEARXNG_BASE_URLS=https://searx.be,https://search.ononoki.org,https://searx.work
TAVILY_API_KEYS=tvly-dev-1i3