mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 热修复bug
1. 热修复抖音解析问题 2. 更改一些文档
This commit is contained in:
parent
34824b202f
commit
99c1f2b2b1
@ -24,11 +24,11 @@ test -- 爬虫文件[python]
|
|||||||
index -- 主入口
|
index -- 主入口
|
||||||
|
|
||||||
## 📔使用说明
|
## 📔使用说明
|
||||||
1. `test -- main.py`爬取链接
|
1. `test -- main.py`爬取链接(要有python环境)
|
||||||
> python3 main.py
|
> python3 main.py
|
||||||
2. 下载mongodb
|
2. 下载mongodb(可能会耗费一些时间:影响功能【#沃日吗】)
|
||||||
> linux系统下自己装一个mongodb,上一个密码(不上有风险)
|
> linux系统下自己装一个mongodb,上一个密码(不上有风险)
|
||||||
3. 在`Yunzai-Bot`安装mongodb依赖
|
3. 在`Yunzai-Bot`安装mongodb、axios依赖
|
||||||
> pnpm add mongodb -w
|
> pnpm add mongodb -w
|
||||||
|
|
||||||
> pnpm add axios -w
|
> pnpm add axios -w
|
||||||
|
@ -40,7 +40,7 @@ export class tools extends plugin {
|
|||||||
|
|
||||||
// 抖音解析
|
// 抖音解析
|
||||||
async douyin(e) {
|
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]
|
const douUrl = urlRex.exec(e.msg.trim())[0]
|
||||||
|
|
||||||
await https.request(douUrl, {
|
await https.request(douUrl, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user