tt-help-cli-ycl 1.3.24 → 1.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +17 -17
  2. package/cli.js +9 -9
  3. package/package.json +47 -47
  4. package/scripts/run-explore copy.bat +68 -68
  5. package/scripts/run-explore.bat +68 -68
  6. package/scripts/run-explore.ps1 +81 -81
  7. package/scripts/run-explore.sh +73 -73
  8. package/scripts/test-captcha-lib.mjs +68 -0
  9. package/scripts/test-captcha.mjs +81 -0
  10. package/scripts/test-incognito-lib.mjs +36 -0
  11. package/scripts/test-login-state.mjs +128 -0
  12. package/scripts/test-safe-click.mjs +45 -0
  13. package/src/cli/attach.js +180 -180
  14. package/src/cli/auto.js +240 -186
  15. package/src/cli/config.js +152 -152
  16. package/src/cli/explore.js +439 -253
  17. package/src/cli/info.js +88 -88
  18. package/src/cli/open.js +102 -0
  19. package/src/cli/progress.js +111 -111
  20. package/src/cli/refresh.js +216 -216
  21. package/src/cli/scrape.js +47 -47
  22. package/src/cli/utils.js +18 -18
  23. package/src/cli/videos.js +41 -41
  24. package/src/cli/watch.js +31 -31
  25. package/src/lib/api-interceptor.js +191 -191
  26. package/src/lib/args.js +551 -517
  27. package/src/lib/browser/anti-detect.js +23 -23
  28. package/src/lib/browser/cdp.js +237 -194
  29. package/src/lib/browser/health-checker.js +93 -0
  30. package/src/lib/browser/launch.js +43 -43
  31. package/src/lib/browser/page.js +156 -156
  32. package/src/lib/constants.js +206 -199
  33. package/src/lib/delay.js +54 -54
  34. package/src/lib/explore-fetch.js +118 -118
  35. package/src/lib/fetcher.js +45 -45
  36. package/src/lib/filter.js +66 -66
  37. package/src/lib/io.js +54 -54
  38. package/src/lib/output.js +80 -80
  39. package/src/lib/page-error-detector.js +71 -71
  40. package/src/lib/parse-ssr.mjs +69 -69
  41. package/src/lib/parser.js +47 -47
  42. package/src/lib/retry.js +45 -45
  43. package/src/lib/scrape.js +89 -89
  44. package/src/lib/tiktok-scraper.mjs +194 -194
  45. package/src/lib/url.js +52 -52
  46. package/src/main.js +44 -42
  47. package/src/results/user-videos-bar.lar.lar.moeta.json +37 -0
  48. package/src/scraper/auto-core.js +203 -203
  49. package/src/scraper/core.js +211 -211
  50. package/src/scraper/explore-core.js +201 -189
  51. package/src/scraper/modules/captcha-handler.js +114 -114
  52. package/src/scraper/modules/comment-extractor.js +74 -74
  53. package/src/scraper/modules/follow-extractor.js +118 -118
  54. package/src/scraper/modules/guess-extractor.js +51 -51
  55. package/src/scraper/modules/page-helpers.js +48 -48
  56. package/src/scraper/refresh-core.js +179 -179
  57. package/src/videos/core.js +101 -101
  58. package/src/watch/data-store.js +828 -828
  59. package/src/watch/public/index.html +753 -753
  60. package/src/watch/server.js +705 -705
@@ -1,74 +1,74 @@
1
- import { delay, getDelayConfig, closeCommentPanel } from "./page-helpers.js";
2
- import { scrollAndCollect } from "./scroll-collector.js";
3
- import { waitAndGetCaptcha } from "./captcha-handler.js";
4
-
5
- async function openCommentPanel(page) {
6
- const tabs = page.locator('[class*="tabbar-item"]');
7
- const commentTab = tabs.filter({ hasText: "评论" }).first();
8
- await commentTab.click();
9
-
10
- // 等待短暂时间让页面渲染
11
- await new Promise(r => setTimeout(r, 2000));
12
-
13
- // 检测验证码
14
- const captchaResult = await waitAndGetCaptcha(page, {
15
- waitMs: 180000,
16
- pollInterval: 5000,
17
- log: console.error,
18
- });
19
-
20
- await page
21
- .waitForSelector('[class*="CommentListContainer"]', { timeout: 5000 })
22
- .catch(() => {});
23
- await page
24
- .waitForFunction(
25
- () => {
26
- const list = document.querySelector('[class*="CommentListContainer"]');
27
- return list && list.children.length > 0;
28
- },
29
- { timeout: 10000 },
30
- )
31
- .catch(() => {});
32
-
33
- return { captchaDetected: !!captchaResult.detected };
34
- }
35
-
36
- async function extractCommentAuthors(page, maxComments = 10) {
37
- const panelResult = await openCommentPanel(page);
38
-
39
- const config = getDelayConfig();
40
- const allAuthors = await scrollAndCollect(page, {
41
- container: '[class*="CommentMain"]',
42
- findScrollable: true,
43
- collectFn: (container) => {
44
- const list = document.querySelector('[class*="CommentListContainer"]');
45
- if (!list) return { items: [] };
46
- const authors = [];
47
- Array.from(list.children).forEach((wrapper) => {
48
- const link = wrapper.querySelector(
49
- '[class*="UsernameContentWrapper"] a',
50
- );
51
- if (link) {
52
- const href = link.href || link.getAttribute("href");
53
- const m = href && href.match(/@([^/]+)/);
54
- if (m) authors.push("@" + m[1]);
55
- }
56
- });
57
- return { items: authors };
58
- },
59
- uniqueKey: (a) => a,
60
- maxItems: maxComments,
61
- delayRange: [Math.round(config.commentMax * 0.3), config.commentMax],
62
- staleThreshold: 2,
63
- });
64
-
65
- await closeCommentPanel(page);
66
- await delay(Math.round(config.commentMax * 0.3), config.commentMax);
67
-
68
- return {
69
- authors: allAuthors.slice(0, maxComments),
70
- captchaDetected: panelResult.captchaDetected,
71
- };
72
- }
73
-
74
- export { extractCommentAuthors };
1
+ import { delay, getDelayConfig, closeCommentPanel } from "./page-helpers.js";
2
+ import { scrollAndCollect } from "./scroll-collector.js";
3
+ import { waitAndGetCaptcha } from "./captcha-handler.js";
4
+
5
+ async function openCommentPanel(page) {
6
+ const tabs = page.locator('[class*="tabbar-item"]');
7
+ const commentTab = tabs.filter({ hasText: "评论" }).first();
8
+ await commentTab.click();
9
+
10
+ // 等待短暂时间让页面渲染
11
+ await new Promise(r => setTimeout(r, 2000));
12
+
13
+ // 检测验证码
14
+ const captchaResult = await waitAndGetCaptcha(page, {
15
+ waitMs: 180000,
16
+ pollInterval: 5000,
17
+ log: console.error,
18
+ });
19
+
20
+ await page
21
+ .waitForSelector('[class*="CommentListContainer"]', { timeout: 5000 })
22
+ .catch(() => {});
23
+ await page
24
+ .waitForFunction(
25
+ () => {
26
+ const list = document.querySelector('[class*="CommentListContainer"]');
27
+ return list && list.children.length > 0;
28
+ },
29
+ { timeout: 10000 },
30
+ )
31
+ .catch(() => {});
32
+
33
+ return { captchaDetected: !!captchaResult.detected };
34
+ }
35
+
36
+ async function extractCommentAuthors(page, maxComments = 10) {
37
+ const panelResult = await openCommentPanel(page);
38
+
39
+ const config = getDelayConfig();
40
+ const allAuthors = await scrollAndCollect(page, {
41
+ container: '[class*="CommentMain"]',
42
+ findScrollable: true,
43
+ collectFn: (container) => {
44
+ const list = document.querySelector('[class*="CommentListContainer"]');
45
+ if (!list) return { items: [] };
46
+ const authors = [];
47
+ Array.from(list.children).forEach((wrapper) => {
48
+ const link = wrapper.querySelector(
49
+ '[class*="UsernameContentWrapper"] a',
50
+ );
51
+ if (link) {
52
+ const href = link.href || link.getAttribute("href");
53
+ const m = href && href.match(/@([^/]+)/);
54
+ if (m) authors.push("@" + m[1]);
55
+ }
56
+ });
57
+ return { items: authors };
58
+ },
59
+ uniqueKey: (a) => a,
60
+ maxItems: maxComments,
61
+ delayRange: [Math.round(config.commentMax * 0.3), config.commentMax],
62
+ staleThreshold: 2,
63
+ });
64
+
65
+ await closeCommentPanel(page);
66
+ await delay(Math.round(config.commentMax * 0.3), config.commentMax);
67
+
68
+ return {
69
+ authors: allAuthors.slice(0, maxComments),
70
+ captchaDetected: panelResult.captchaDetected,
71
+ };
72
+ }
73
+
74
+ export { extractCommentAuthors };
@@ -1,118 +1,118 @@
1
- import { delay, getDelayConfig } from "./page-helpers.js";
2
- import { scrollAndCollect } from "./scroll-collector.js";
3
-
4
- const FILTER_WORDS = ["主页", "已关注", "粉丝", "推荐"];
5
-
6
- async function waitForListContent(page, minChildren = 1, timeout = 15000) {
7
- await page
8
- .waitForFunction(
9
- (min) => {
10
- const container = document.querySelector(
11
- "[class*=DivUserListContainer]",
12
- );
13
- return container && container.children.length >= min;
14
- },
15
- minChildren,
16
- { timeout },
17
- )
18
- .catch(() => {});
19
- }
20
-
21
- async function openFollowModal(page) {
22
- const el = await page.$("[data-e2e=following]");
23
- if (!el) {
24
- throw new Error(
25
- "未找到 [data-e2e=following] 元素,请确认当前页面为用户主页",
26
- );
27
- }
28
- await el.evaluate((el) => el.parentElement.click());
29
- await page.waitForSelector("[class*=DivUserListContainer]", { timeout: 30000 });
30
- await waitForListContent(page, 1, 5000);
31
- }
32
-
33
- async function switchToFollowersTab(page) {
34
- await page.evaluate(() => {
35
- const tabs = document.querySelectorAll("[class*=DivTabItem]");
36
- for (const tab of tabs) {
37
- if (tab.textContent?.includes("粉丝")) {
38
- tab.click();
39
- return;
40
- }
41
- }
42
- throw new Error("未找到粉丝 Tab");
43
- });
44
- await page.waitForSelector("[class*=DivUserListContainer]", { timeout: 30000 });
45
- await waitForListContent(page, 1, 5000);
46
- }
47
-
48
- async function closeFollowModal(page) {
49
- await page.evaluate(() => {
50
- const closeBtn = document.querySelector("[data-e2e=follow-popup-close]");
51
- if (closeBtn) closeBtn.click();
52
- });
53
- await page.waitForTimeout(500);
54
- }
55
-
56
- function createUserCollectFn() {
57
- return (container) => {
58
- const FILTER_WORDS = ["主页", "已关注", "粉丝", "推荐"];
59
- const modal = document.querySelector("[class*=eyhy6180]");
60
- const root = modal || document;
61
- const users = [];
62
- const seen = new Set();
63
- const links = root.querySelectorAll('a[href*="/@"]');
64
- for (const link of links) {
65
- const match = link.href.match(/@([^/?]+)/);
66
- if (!match) continue;
67
- const handle = "@" + decodeURIComponent(match[1]);
68
- const text = (link.textContent || "").trim();
69
- if (text.length <= 2) continue;
70
- if (FILTER_WORDS.includes(text)) continue;
71
- if (seen.has(handle)) continue;
72
- seen.add(handle);
73
- users.push({ handle, displayName: text });
74
- }
75
- return { items: users };
76
- };
77
- }
78
-
79
- async function extractUsersFromModal(page, maxUsers) {
80
- const config = getDelayConfig();
81
- const minDelay = Math.max(300, Math.round(config.commentMax * 0.3));
82
- const maxDelay = Math.max(800, config.commentMax);
83
-
84
- const allUsers = await scrollAndCollect(page, {
85
- container: "[class*=DivUserListContainer]",
86
- findScrollable: false,
87
- collectFn: createUserCollectFn(),
88
- uniqueKey: (u) => u.handle,
89
- maxItems: maxUsers,
90
- delayRange: [minDelay, maxDelay],
91
- staleThreshold: 2,
92
- });
93
-
94
- return allUsers.slice(0, maxUsers);
95
- }
96
-
97
- async function extractFollowAndFollowers(page, options = {}) {
98
- const { maxFollowing = 999, maxFollowers = 999, log = () => {} } = options;
99
-
100
- await openFollowModal(page);
101
-
102
- const following = await extractUsersFromModal(page, maxFollowing);
103
- log(` 已关注: ${following.length}`);
104
-
105
- await switchToFollowersTab(page);
106
-
107
- const followers = await extractUsersFromModal(page, maxFollowers);
108
- log(` 粉丝: ${followers.length}`);
109
-
110
- await closeFollowModal(page);
111
-
112
- return {
113
- following: following.map((u) => [u.handle, u.displayName]),
114
- followers: followers.map((u) => [u.handle, u.displayName]),
115
- };
116
- }
117
-
118
- export { extractFollowAndFollowers };
1
+ import { delay, getDelayConfig } from "./page-helpers.js";
2
+ import { scrollAndCollect } from "./scroll-collector.js";
3
+
4
+ const FILTER_WORDS = ["主页", "已关注", "粉丝", "推荐"];
5
+
6
+ async function waitForListContent(page, minChildren = 1, timeout = 15000) {
7
+ await page
8
+ .waitForFunction(
9
+ (min) => {
10
+ const container = document.querySelector(
11
+ "[class*=DivUserListContainer]",
12
+ );
13
+ return container && container.children.length >= min;
14
+ },
15
+ minChildren,
16
+ { timeout },
17
+ )
18
+ .catch(() => {});
19
+ }
20
+
21
+ async function openFollowModal(page) {
22
+ const el = await page.$("[data-e2e=following]");
23
+ if (!el) {
24
+ throw new Error(
25
+ "未找到 [data-e2e=following] 元素,请确认当前页面为用户主页",
26
+ );
27
+ }
28
+ await el.evaluate((el) => el.parentElement.click());
29
+ await page.waitForSelector("[class*=DivUserListContainer]", { timeout: 30000 });
30
+ await waitForListContent(page, 1, 5000);
31
+ }
32
+
33
+ async function switchToFollowersTab(page) {
34
+ await page.evaluate(() => {
35
+ const tabs = document.querySelectorAll("[class*=DivTabItem]");
36
+ for (const tab of tabs) {
37
+ if (tab.textContent?.includes("粉丝")) {
38
+ tab.click();
39
+ return;
40
+ }
41
+ }
42
+ throw new Error("未找到粉丝 Tab");
43
+ });
44
+ await page.waitForSelector("[class*=DivUserListContainer]", { timeout: 30000 });
45
+ await waitForListContent(page, 1, 5000);
46
+ }
47
+
48
+ async function closeFollowModal(page) {
49
+ await page.evaluate(() => {
50
+ const closeBtn = document.querySelector("[data-e2e=follow-popup-close]");
51
+ if (closeBtn) closeBtn.click();
52
+ });
53
+ await page.waitForTimeout(500);
54
+ }
55
+
56
+ function createUserCollectFn() {
57
+ return (container) => {
58
+ const FILTER_WORDS = ["主页", "已关注", "粉丝", "推荐"];
59
+ const modal = document.querySelector("[class*=eyhy6180]");
60
+ const root = modal || document;
61
+ const users = [];
62
+ const seen = new Set();
63
+ const links = root.querySelectorAll('a[href*="/@"]');
64
+ for (const link of links) {
65
+ const match = link.href.match(/@([^/?]+)/);
66
+ if (!match) continue;
67
+ const handle = "@" + decodeURIComponent(match[1]);
68
+ const text = (link.textContent || "").trim();
69
+ if (text.length <= 2) continue;
70
+ if (FILTER_WORDS.includes(text)) continue;
71
+ if (seen.has(handle)) continue;
72
+ seen.add(handle);
73
+ users.push({ handle, displayName: text });
74
+ }
75
+ return { items: users };
76
+ };
77
+ }
78
+
79
+ async function extractUsersFromModal(page, maxUsers) {
80
+ const config = getDelayConfig();
81
+ const minDelay = Math.max(300, Math.round(config.commentMax * 0.3));
82
+ const maxDelay = Math.max(800, config.commentMax);
83
+
84
+ const allUsers = await scrollAndCollect(page, {
85
+ container: "[class*=DivUserListContainer]",
86
+ findScrollable: false,
87
+ collectFn: createUserCollectFn(),
88
+ uniqueKey: (u) => u.handle,
89
+ maxItems: maxUsers,
90
+ delayRange: [minDelay, maxDelay],
91
+ staleThreshold: 2,
92
+ });
93
+
94
+ return allUsers.slice(0, maxUsers);
95
+ }
96
+
97
+ async function extractFollowAndFollowers(page, options = {}) {
98
+ const { maxFollowing = 999, maxFollowers = 999, log = () => {} } = options;
99
+
100
+ await openFollowModal(page);
101
+
102
+ const following = await extractUsersFromModal(page, maxFollowing);
103
+ log(` 已关注: ${following.length}`);
104
+
105
+ await switchToFollowersTab(page);
106
+
107
+ const followers = await extractUsersFromModal(page, maxFollowers);
108
+ log(` 粉丝: ${followers.length}`);
109
+
110
+ await closeFollowModal(page);
111
+
112
+ return {
113
+ following: following.map((u) => [u.handle, u.displayName]),
114
+ followers: followers.map((u) => [u.handle, u.displayName]),
115
+ };
116
+ }
117
+
118
+ export { extractFollowAndFollowers };
@@ -1,51 +1,51 @@
1
- import { delay, getDelayConfig, closeCommentPanel } from './page-helpers.js';
2
- import { scrollAndCollect } from './scroll-collector.js';
3
-
4
- async function openGuessTab(page) {
5
- const tabs = page.locator('[class*="tabbar-item"]');
6
- const guessTab = tabs.filter({ hasText: /猜你喜欢/i }).first();
7
- await guessTab.click();
8
- const config = getDelayConfig();
9
- await delay(Math.round(config.commentMax * 0.5), config.commentMax);
10
- await page.waitForSelector('[class*="Related"]', { timeout: 5000 }).catch(() => {});
11
- }
12
-
13
- async function extractGuessVideos(page, maxVideos = 10) {
14
- await openGuessTab(page);
15
-
16
- const config = getDelayConfig();
17
- const allVideos = await scrollAndCollect(page, {
18
- container: '[class*="Related"]',
19
- findScrollable: true,
20
- collectFn: (container) => {
21
- const items = [];
22
- Array.from(container.querySelectorAll('[class*="DivItemContainer"]')).forEach(item => {
23
- const link = item.querySelector('a[href*="/video/"]');
24
- if (link) {
25
- const href = link.href || link.getAttribute('href');
26
- const m = href && href.match(/@([^/]+)\/video\/(\d+)/);
27
- if (m) {
28
- items.push({
29
- author: '@' + m[1],
30
- videoId: m[2],
31
- url: href,
32
- title: '',
33
- });
34
- }
35
- }
36
- });
37
- return { items };
38
- },
39
- uniqueKey: (v) => v.videoId,
40
- maxItems: maxVideos,
41
- delayRange: [Math.round(config.commentMax * 0.3), config.commentMax],
42
- staleThreshold: 3,
43
- });
44
-
45
- await closeCommentPanel(page);
46
- await delay(Math.round(config.commentMax * 0.3), config.commentMax);
47
-
48
- return allVideos.slice(0, maxVideos);
49
- }
50
-
51
- export { extractGuessVideos };
1
+ import { delay, getDelayConfig, closeCommentPanel } from './page-helpers.js';
2
+ import { scrollAndCollect } from './scroll-collector.js';
3
+
4
+ async function openGuessTab(page) {
5
+ const tabs = page.locator('[class*="tabbar-item"]');
6
+ const guessTab = tabs.filter({ hasText: /猜你喜欢/i }).first();
7
+ await guessTab.click();
8
+ const config = getDelayConfig();
9
+ await delay(Math.round(config.commentMax * 0.5), config.commentMax);
10
+ await page.waitForSelector('[class*="Related"]', { timeout: 5000 }).catch(() => {});
11
+ }
12
+
13
+ async function extractGuessVideos(page, maxVideos = 10) {
14
+ await openGuessTab(page);
15
+
16
+ const config = getDelayConfig();
17
+ const allVideos = await scrollAndCollect(page, {
18
+ container: '[class*="Related"]',
19
+ findScrollable: true,
20
+ collectFn: (container) => {
21
+ const items = [];
22
+ Array.from(container.querySelectorAll('[class*="DivItemContainer"]')).forEach(item => {
23
+ const link = item.querySelector('a[href*="/video/"]');
24
+ if (link) {
25
+ const href = link.href || link.getAttribute('href');
26
+ const m = href && href.match(/@([^/]+)\/video\/(\d+)/);
27
+ if (m) {
28
+ items.push({
29
+ author: '@' + m[1],
30
+ videoId: m[2],
31
+ url: href,
32
+ title: '',
33
+ });
34
+ }
35
+ }
36
+ });
37
+ return { items };
38
+ },
39
+ uniqueKey: (v) => v.videoId,
40
+ maxItems: maxVideos,
41
+ delayRange: [Math.round(config.commentMax * 0.3), config.commentMax],
42
+ staleThreshold: 3,
43
+ });
44
+
45
+ await closeCommentPanel(page);
46
+ await delay(Math.round(config.commentMax * 0.3), config.commentMax);
47
+
48
+ return allVideos.slice(0, maxVideos);
49
+ }
50
+
51
+ export { extractGuessVideos };
@@ -1,48 +1,48 @@
1
- import {
2
- delay,
3
- getDelayConfig,
4
- setDelayConfig,
5
- listDelayPresets,
6
- DELAY_PRESETS,
7
- } from '../../lib/delay.js';
8
- import { ensureBrowserReady } from '../../lib/browser/cdp.js';
9
- import {
10
- ensureTikTokPage,
11
- closeCommentPanel,
12
- findTikTokPage,
13
- getOrCreatePage,
14
- isLoggedIn,
15
- assertPageUrl,
16
- } from '../../lib/browser/page.js';
17
- import { retryWithBackoff, isRetryableError } from '../../lib/retry.js';
18
- import {
19
- extractUserSection,
20
- parseUserSection,
21
- extractLocationCreated,
22
- USER_SECTION_SIZE,
23
- } from '../../lib/parser.js';
24
- import { detectPageError } from './page-error-detector.js';
25
-
26
- export {
27
- delay,
28
- setDelayConfig,
29
- getDelayConfig,
30
- listDelayPresets,
31
- DELAY_PRESETS,
32
- ensureBrowserReady,
33
- ensureTikTokPage,
34
- closeCommentPanel,
35
- findTikTokPage,
36
- getOrCreatePage,
37
- isLoggedIn,
38
- assertPageUrl,
39
- retryWithBackoff,
40
- isRetryableError,
41
- extractUserSection,
42
- parseUserSection,
43
- extractLocationCreated,
44
- USER_SECTION_SIZE,
45
- detectPageError,
46
- };
47
-
48
- export const CDP_PORT = 9222;
1
+ import {
2
+ delay,
3
+ getDelayConfig,
4
+ setDelayConfig,
5
+ listDelayPresets,
6
+ DELAY_PRESETS,
7
+ } from '../../lib/delay.js';
8
+ import { ensureBrowserReady } from '../../lib/browser/cdp.js';
9
+ import {
10
+ ensureTikTokPage,
11
+ closeCommentPanel,
12
+ findTikTokPage,
13
+ getOrCreatePage,
14
+ isLoggedIn,
15
+ assertPageUrl,
16
+ } from '../../lib/browser/page.js';
17
+ import { retryWithBackoff, isRetryableError } from '../../lib/retry.js';
18
+ import {
19
+ extractUserSection,
20
+ parseUserSection,
21
+ extractLocationCreated,
22
+ USER_SECTION_SIZE,
23
+ } from '../../lib/parser.js';
24
+ import { detectPageError } from './page-error-detector.js';
25
+
26
+ export {
27
+ delay,
28
+ setDelayConfig,
29
+ getDelayConfig,
30
+ listDelayPresets,
31
+ DELAY_PRESETS,
32
+ ensureBrowserReady,
33
+ ensureTikTokPage,
34
+ closeCommentPanel,
35
+ findTikTokPage,
36
+ getOrCreatePage,
37
+ isLoggedIn,
38
+ assertPageUrl,
39
+ retryWithBackoff,
40
+ isRetryableError,
41
+ extractUserSection,
42
+ parseUserSection,
43
+ extractLocationCreated,
44
+ USER_SECTION_SIZE,
45
+ detectPageError,
46
+ };
47
+
48
+ export const CDP_PORT = 9222;