Skip to content

Commit

Permalink
fix: 去除监听request
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 4, 2024
1 parent e7bf19d commit 32d4637
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ require("dotenv").config();
console.error(`Error: ${error.message}`);
});
page.on("console", (msg) => console.log("PAGE LOG:", msg.text()));
// 监听所有请求
page.on("request", (request) => {
console.log("Request URL:", request.url());
console.log("Request Headers:", request.headers());
});
// // 监听所有请求
// page.on("request", (request) => {
// console.log("Request URL:", request.url());
// console.log("Request Headers:", request.headers());
// });

//登录操作
await page.goto("https://linux.do");
Expand Down

0 comments on commit 32d4637

Please sign in to comment.