利用puppeeter 抓取融360
出现了一个错误 TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
加入 timeout: 0
在 page.goto 函数中
const response = await page.goto(url, { timeout: 0 //You can use timeout: 0 to disabled timeout errors if you're loading a heavy page. // Erro TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded });
1
2
3
4
5
6
|
const
response
=
await
page
.
goto
(
url
,
{
timeout
:
0
/
/
You
can
use
timeout
:
0
to
disabled
timeout
errors
if
you'
re
loading
a
heavy
page
.
/
/
Erro
TimeoutError
:
Navigation
Timeout
Exceeded
:
30000ms
exceeded
}
)
;
|