This commit is contained in:
Theluyuan 2023-06-15 10:57:40 +08:00
parent 40cda264e2
commit 3cf3965a6e

View File

@ -7,6 +7,7 @@ async function getQqListData(url) {
headless: false,
timeout: 0 // 默认超时为30秒设置为0则表示不设置超时
});
try{
const page = await browser.newPage();
page.setViewport({
width: 1376,
@ -77,6 +78,11 @@ async function getQqListData(url) {
}
browser.close()
return list
}catch{
browser.close()
return []
}
}
module.exports = {