From 99c1f2b2b123d9266ccdca0ab4a128f91dac2143 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Wed, 23 Nov 2022 17:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E7=83=AD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 热修复抖音解析问题 2. 更改一些文档 --- README.md | 6 +++--- apps/tools.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index da82f3f..722d403 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,11 @@ test -- 爬虫文件[python] index -- 主入口 ## 📔使用说明 -1. `test -- main.py`爬取链接 +1. `test -- main.py`爬取链接(要有python环境) > python3 main.py -2. 下载mongodb +2. 下载mongodb(可能会耗费一些时间:影响功能【#沃日吗】) > linux系统下自己装一个mongodb,上一个密码(不上有风险) -3. 在`Yunzai-Bot`安装mongodb依赖 +3. 在`Yunzai-Bot`安装mongodb、axios依赖 > pnpm add mongodb -w > pnpm add axios -w diff --git a/apps/tools.js b/apps/tools.js index 01ab549..dec3361 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -40,7 +40,7 @@ export class tools extends plugin { // 抖音解析 async douyin(e) { - const urlRex = /(http:|https:)\/\/v.douyin.com\/[A-Za-z\\d._?%&+\-=\/#]*/g + const urlRex = /(http:|https:)\/\/v.douyin.com\/[A-Za-z\d._?%&+\-=\/#]*/g const douUrl = urlRex.exec(e.msg.trim())[0] await https.request(douUrl, {