This commit is contained in:
2023-06-20 22:34:27 +08:00
parent 3cf3965a6e
commit 95f09a96b8
9 changed files with 729 additions and 2 deletions

22
util/douban/index.js Normal file
View File

@@ -0,0 +1,22 @@
const axios = require("axios")
const puppeteer = require("puppeteer")
async function serach(name) {
const list = await axios.get(`https://ptgen.theluyuan.com/?search=${name}&source=douban`, {
proxy: false,
})
return list.data.data
}
async function getinfo(url) {
const info = await axios.get(url,{
proxy: false,
})
return info.data.format
}
module.exports = {
serach,
getinfo
}