Commit ab56688c authored by 姚广胤's avatar 姚广胤

更新网址

parent f5060ab2
...@@ -8,7 +8,7 @@ const request = require('request'); ...@@ -8,7 +8,7 @@ const request = require('request');
let theBrowser = null let theBrowser = null
const websiteUrl = 'https://m.7ho.com/item/detail?id=333&channelId=21524'; const websiteUrl = 'https://m.wselearning.com/ftsalonreg/index.html?winType=DB1712FTS';
const uploadFileUrl = 'upload.com/upload'; const uploadFileUrl = 'upload.com/upload';
// 启动puppeteer // 启动puppeteer
...@@ -32,7 +32,7 @@ puppeteer.launch({ ...@@ -32,7 +32,7 @@ puppeteer.launch({
// 页面渲染完毕后,开始截图 // 页面渲染完毕后,开始截图
await page.screenshot({ await page.screenshot({
path: './dashboard_shot.png', path: './xxx1.png',
clip: { clip: {
x: 0, x: 0,
y: 0, y: 0,
...@@ -64,4 +64,4 @@ puppeteer.launch({ ...@@ -64,4 +64,4 @@ puppeteer.launch({
// }) // })
}).catch(error => { }).catch(error => {
theBrowser.close(); theBrowser.close();
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment