This commit is contained in:
2023-07-04 21:38:26 +08:00
parent 0c010beb54
commit e38a226795
13 changed files with 74 additions and 10 deletions

22
util/ptgen/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://pt.zmpt.cc/Ptgen?search=${name}`, {
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
}