ptSend/util/ptgen/index.js

22 lines
411 B
JavaScript
Raw Normal View History

2023-06-20 22:34:27 +08:00
const axios = require("axios")
const puppeteer = require("puppeteer")
async function serach(name) {
2023-07-04 21:38:26 +08:00
const list = await axios.get(`https://pt.zmpt.cc/Ptgen?search=${name}`, {
2023-06-20 22:34:27 +08:00
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
}