22 lines
411 B
JavaScript
22 lines
411 B
JavaScript
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
|
|
} |