Spaces:
Sleeping
Sleeping
github-actions[bot]
commited on
Commit
·
032ce5a
1
Parent(s):
65703f1
Update from GitHub Actions
Browse files- src/index.ts +0 -17
src/index.ts
CHANGED
@@ -99,23 +99,6 @@ async function initGensparkPage(cookies?: any[]) {
|
|
99 |
});
|
100 |
});
|
101 |
|
102 |
-
// 设置额外的headers
|
103 |
-
await gensparkPage.setExtraHTTPHeaders({
|
104 |
-
'Accept-Language': 'en-US,en;q=0.9',
|
105 |
-
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
|
106 |
-
'Accept-Encoding': 'gzip, deflate, br',
|
107 |
-
'Connection': 'keep-alive',
|
108 |
-
'Upgrade-Insecure-Requests': '1',
|
109 |
-
'Sec-Fetch-Dest': 'document',
|
110 |
-
'Sec-Fetch-Mode': 'navigate',
|
111 |
-
'Sec-Fetch-Site': 'none',
|
112 |
-
'Sec-Fetch-User': '?1',
|
113 |
-
'sec-ch-ua': '"Chromium";v="120", "Google Chrome";v="120", "Not=A?Brand";v="99"',
|
114 |
-
'sec-ch-ua-mobile': '?0',
|
115 |
-
'sec-ch-ua-platform': '"Windows"'
|
116 |
-
});
|
117 |
-
|
118 |
-
|
119 |
// 首次加载页面
|
120 |
await gensparkPage.goto('https://www.genspark.ai', {
|
121 |
waitUntil: 'networkidle',
|
|
|
99 |
});
|
100 |
});
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
// 首次加载页面
|
103 |
await gensparkPage.goto('https://www.genspark.ai', {
|
104 |
waitUntil: 'networkidle',
|