tt-help-cli-ycl 1.3.11 → 1.3.13

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 (61) hide show
  1. package/README.md +17 -17
  2. package/cli.js +9 -9
  3. package/package.json +45 -46
  4. package/{bat → scripts}/run-explore.bat +68 -68
  5. package/{bat → scripts}/run-explore.ps1 +81 -81
  6. package/{bat → scripts}/run-explore.sh +73 -73
  7. package/scripts/test-captcha-lib.mjs +68 -0
  8. package/scripts/test-captcha.mjs +81 -0
  9. package/scripts/test-incognito-lib.mjs +36 -0
  10. package/scripts/test-login-state.mjs +128 -0
  11. package/scripts/test-safe-click.mjs +45 -0
  12. package/src/cli/auto.js +186 -157
  13. package/src/cli/config.js +116 -0
  14. package/src/cli/explore-default.js +83 -0
  15. package/src/cli/explore.js +227 -181
  16. package/src/cli/progress.js +111 -111
  17. package/src/cli/refresh.js +216 -0
  18. package/src/cli/scrape.js +47 -47
  19. package/src/cli/utils.js +18 -18
  20. package/src/cli/videos.js +41 -41
  21. package/src/cli/watch.js +31 -31
  22. package/src/lib/args.js +456 -391
  23. package/src/lib/browser/anti-detect.js +23 -23
  24. package/src/lib/browser/cdp.js +194 -142
  25. package/src/lib/browser/launch.js +43 -43
  26. package/src/lib/browser/page.js +146 -87
  27. package/src/lib/constants.js +119 -119
  28. package/src/lib/delay.js +54 -54
  29. package/src/lib/explore-fetch.js +118 -118
  30. package/src/lib/fetcher.js +45 -45
  31. package/src/lib/filter.js +66 -66
  32. package/src/lib/io.js +54 -54
  33. package/src/lib/output.js +80 -80
  34. package/src/{scraper/modules/page-error-detector.mjs → lib/page-error-detector.js} +70 -70
  35. package/src/lib/parser.js +47 -47
  36. package/src/lib/retry.js +45 -45
  37. package/src/lib/scrape.js +40 -40
  38. package/src/{scraper/modules/scroll-collector.mjs → lib/scroll-collector.js} +231 -189
  39. package/src/lib/url.js +52 -52
  40. package/src/main.js +48 -0
  41. package/src/results/user-videos-bar.lar.lar.moeta.json +37 -0
  42. package/src/scraper/{auto-core.mjs → auto-core.js} +203 -194
  43. package/src/scraper/{core.mjs → core.js} +211 -190
  44. package/src/scraper/{explore-core.mjs → explore-core.js} +180 -171
  45. package/src/scraper/modules/{captcha-handler.mjs → captcha-handler.js} +114 -114
  46. package/src/scraper/modules/{comment-extractor.mjs → comment-extractor.js} +74 -69
  47. package/src/scraper/modules/{follow-extractor.mjs → follow-extractor.js} +121 -121
  48. package/src/scraper/modules/{guess-extractor.mjs → guess-extractor.js} +51 -51
  49. package/src/scraper/modules/page-error-detector.js +1 -0
  50. package/src/scraper/modules/{page-helpers.mjs → page-helpers.js} +48 -48
  51. package/src/scraper/modules/scroll-collector.js +8 -0
  52. package/src/scraper/refresh-core.js +179 -0
  53. package/src/videos/{core.mjs → core.js} +126 -126
  54. package/src/watch/data-store.js +431 -0
  55. package/src/watch/public/index.html +721 -690
  56. package/src/watch/{server.mjs → server.js} +484 -349
  57. package/src/main.mjs +0 -234
  58. package/src/test-auto-follow.cjs +0 -109
  59. package/src/test-extractors.cjs +0 -75
  60. package/src/test-follow.cjs +0 -41
  61. package/src/watch/data-store.mjs +0 -274
package/src/lib/output.js CHANGED
@@ -1,80 +1,80 @@
1
- export function deduplicate(results) {
2
- const seen = new Set();
3
- return results.filter(r => {
4
- if (r.id) {
5
- const key = r.id;
6
- if (seen.has(key)) return false;
7
- seen.add(key);
8
- return true;
9
- }
10
- const key = r.secUid || r.uniqueId;
11
- if (seen.has(key)) return false;
12
- seen.add(key);
13
- return true;
14
- });
15
- }
16
-
17
- export function formatTable(data) {
18
- if (data.length === 0) return '';
19
-
20
- if (data.length === 1) {
21
- const lines = [];
22
- for (const [key, val] of Object.entries(data[0])) {
23
- if (typeof val === 'string' && val.length > 80) {
24
- lines.push(` ${key}: ${val.substring(0, 80)}...`);
25
- } else {
26
- lines.push(` ${key}: ${val}`);
27
- }
28
- }
29
- return lines.join('\n');
30
- }
31
-
32
- const cols = [
33
- { key: 'uniqueId', label: '用户名', width: 20 },
34
- { key: 'locationCreated', label: '地区', width: 6 },
35
- { key: 'nickname', label: '昵称', width: 20 },
36
- { key: 'ttSeller', label: 'TT卖家', width: 8 },
37
- { key: 'verified', label: '已认证', width: 8 },
38
- { key: 'followerCount', label: '粉丝', width: 10 },
39
- { key: 'videoCount', label: '视频', width: 8 },
40
- ];
41
-
42
- for (const row of data) {
43
- for (const col of cols) {
44
- const val = String(row[col.key] ?? '-');
45
- col.width = Math.max(col.width, val.length, col.label.length);
46
- }
47
- }
48
-
49
- const sep = (w) => '-'.repeat(w);
50
- const pad = (s, w) => s.padEnd(w);
51
-
52
- const header = cols.map(c => pad(c.label, c.width)).join(' │ ');
53
- const divider = cols.map(c => sep(c.width)).join('-+-');
54
- const rows = data.map(r =>
55
- cols.map(c => pad(String(r[c.key] ?? '-'), c.width)).join(' │ ')
56
- );
57
-
58
- return [header, divider, ...rows].join('\n');
59
- }
60
-
61
- export function formatOutput(data, format) {
62
- if (format === 'table') return formatTable(data);
63
-
64
- if (format === 'raw') {
65
- if (Array.isArray(data) && data.length > 0 && 'url' in data[0]) {
66
- return data.map(d => d.url).join('\n');
67
- }
68
- if (Array.isArray(data) && data.length > 0 && 'uniqueId' in data[0]) {
69
- return data.map(d => `https://www.tiktok.com/@${d.uniqueId}`).join('\n');
70
- }
71
- return JSON.stringify(data, null, 2);
72
- }
73
-
74
- // Default JSON output, but for explore results (url-only) output pure text
75
- if (Array.isArray(data) && data.length > 0 && 'url' in data[0]) {
76
- return data.map(d => d.url).join('\n');
77
- }
78
-
79
- return JSON.stringify(data, null, 2);
80
- }
1
+ export function deduplicate(results) {
2
+ const seen = new Set();
3
+ return results.filter(r => {
4
+ if (r.id) {
5
+ const key = r.id;
6
+ if (seen.has(key)) return false;
7
+ seen.add(key);
8
+ return true;
9
+ }
10
+ const key = r.secUid || r.uniqueId;
11
+ if (seen.has(key)) return false;
12
+ seen.add(key);
13
+ return true;
14
+ });
15
+ }
16
+
17
+ export function formatTable(data) {
18
+ if (data.length === 0) return '';
19
+
20
+ if (data.length === 1) {
21
+ const lines = [];
22
+ for (const [key, val] of Object.entries(data[0])) {
23
+ if (typeof val === 'string' && val.length > 80) {
24
+ lines.push(` ${key}: ${val.substring(0, 80)}...`);
25
+ } else {
26
+ lines.push(` ${key}: ${val}`);
27
+ }
28
+ }
29
+ return lines.join('\n');
30
+ }
31
+
32
+ const cols = [
33
+ { key: 'uniqueId', label: '用户名', width: 20 },
34
+ { key: 'locationCreated', label: '地区', width: 6 },
35
+ { key: 'nickname', label: '昵称', width: 20 },
36
+ { key: 'ttSeller', label: 'TT卖家', width: 8 },
37
+ { key: 'verified', label: '已认证', width: 8 },
38
+ { key: 'followerCount', label: '粉丝', width: 10 },
39
+ { key: 'videoCount', label: '视频', width: 8 },
40
+ ];
41
+
42
+ for (const row of data) {
43
+ for (const col of cols) {
44
+ const val = String(row[col.key] ?? '-');
45
+ col.width = Math.max(col.width, val.length, col.label.length);
46
+ }
47
+ }
48
+
49
+ const sep = (w) => '-'.repeat(w);
50
+ const pad = (s, w) => s.padEnd(w);
51
+
52
+ const header = cols.map(c => pad(c.label, c.width)).join(' │ ');
53
+ const divider = cols.map(c => sep(c.width)).join('-+-');
54
+ const rows = data.map(r =>
55
+ cols.map(c => pad(String(r[c.key] ?? '-'), c.width)).join(' │ ')
56
+ );
57
+
58
+ return [header, divider, ...rows].join('\n');
59
+ }
60
+
61
+ export function formatOutput(data, format) {
62
+ if (format === 'table') return formatTable(data);
63
+
64
+ if (format === 'raw') {
65
+ if (Array.isArray(data) && data.length > 0 && 'url' in data[0]) {
66
+ return data.map(d => d.url).join('\n');
67
+ }
68
+ if (Array.isArray(data) && data.length > 0 && 'uniqueId' in data[0]) {
69
+ return data.map(d => `https://www.tiktok.com/@${d.uniqueId}`).join('\n');
70
+ }
71
+ return JSON.stringify(data, null, 2);
72
+ }
73
+
74
+ // Default JSON output, but for explore results (url-only) output pure text
75
+ if (Array.isArray(data) && data.length > 0 && 'url' in data[0]) {
76
+ return data.map(d => d.url).join('\n');
77
+ }
78
+
79
+ return JSON.stringify(data, null, 2);
80
+ }
@@ -1,70 +1,70 @@
1
- const PATTERNS = {
2
- login_required: [
3
- "登录 TikTok",
4
- "登录后查看",
5
- "查看需登录",
6
- "Log in to TikTok",
7
- "Login to TikTok",
8
- "观众管理功能",
9
- "Viewer management",
10
- "私密账号",
11
- "私密状态",
12
- ],
13
- captcha: [
14
- "captcha",
15
- "verify",
16
- "验证码",
17
- "点击下一步",
18
- "Press and hold",
19
- "slide to verify",
20
- "滑动验证",
21
- "人机验证",
22
- "安全验证",
23
- ],
24
- rate_limited: [
25
- "访问过于频繁",
26
- "操作过于频繁",
27
- "too many requests",
28
- "rate limit",
29
- "稍后再试",
30
- "try again later",
31
- "请稍后再来",
32
- ],
33
- region_blocked: [
34
- "地区限制",
35
- "not available in your",
36
- "此内容不可用",
37
- "content not available",
38
- "currently unavailable",
39
- "抱歉,此内容",
40
- "此页面不可用",
41
- ],
42
- not_found: [
43
- "页面不存在",
44
- "page not found",
45
- "找不到",
46
- "Couldn't find this",
47
- "nothing here",
48
- "此页面不存在",
49
- "没有内容",
50
- "发起对话",
51
- "0 条评论",
52
- ],
53
- };
54
-
55
- export async function detectPageError(page) {
56
- return page.evaluate((patterns) => {
57
- const bodyText = document.body.innerText;
58
- const lower = bodyText.toLowerCase();
59
-
60
- for (const [type, phrases] of Object.entries(patterns)) {
61
- for (const phrase of phrases) {
62
- if (lower.includes(phrase.toLowerCase())) {
63
- return type;
64
- }
65
- }
66
- }
67
-
68
- return null;
69
- }, PATTERNS);
70
- }
1
+ const PATTERNS = {
2
+ login_required: [
3
+ "登录 TikTok",
4
+ "登录后查看",
5
+ "查看需登录",
6
+ "Log in to TikTok",
7
+ "Login to TikTok",
8
+ "观众管理功能",
9
+ "Viewer management",
10
+ "私密账号",
11
+ "私密状态",
12
+ ],
13
+ captcha: [
14
+ "captcha",
15
+ "verify",
16
+ "验证码",
17
+ "点击下一步",
18
+ "Press and hold",
19
+ "slide to verify",
20
+ "滑动验证",
21
+ "人机验证",
22
+ "安全验证",
23
+ ],
24
+ rate_limited: [
25
+ "访问过于频繁",
26
+ "操作过于频繁",
27
+ "too many requests",
28
+ "rate limit",
29
+ "稍后再试",
30
+ "try again later",
31
+ "请稍后再来",
32
+ ],
33
+ region_blocked: [
34
+ "地区限制",
35
+ "not available in your",
36
+ "此内容不可用",
37
+ "content not available",
38
+ "currently unavailable",
39
+ "抱歉,此内容",
40
+ "此页面不可用",
41
+ ],
42
+ not_found: [
43
+ "页面不存在",
44
+ "page not found",
45
+ "找不到",
46
+ "Couldn't find this",
47
+ "nothing here",
48
+ "此页面不存在",
49
+ "没有内容",
50
+ "发起对话",
51
+ "0 条评论",
52
+ ],
53
+ };
54
+
55
+ export async function detectPageError(page) {
56
+ return page.evaluate((patterns) => {
57
+ const bodyText = document.body.innerText;
58
+ const lower = bodyText.toLowerCase();
59
+
60
+ for (const [type, phrases] of Object.entries(patterns)) {
61
+ for (const phrase of phrases) {
62
+ if (lower.includes(phrase.toLowerCase())) {
63
+ return type;
64
+ }
65
+ }
66
+ }
67
+
68
+ return null;
69
+ }, PATTERNS);
70
+ }
package/src/lib/parser.js CHANGED
@@ -1,47 +1,47 @@
1
- export const USER_SECTION_SIZE = 12000;
2
-
3
- export function extractUserSection(html) {
4
- const idx = html.indexOf('"uniqueId"');
5
- if (idx < 0) return null;
6
- return html.substring(idx, idx + USER_SECTION_SIZE);
7
- }
8
-
9
- export function parseUserSection(section) {
10
- const data = {};
11
-
12
- for (const key of ['uniqueId', 'uid', 'secUid']) {
13
- const m = section.match(new RegExp(`"${key}":"([^"]*)`));
14
- if (m) data[key] = m[1];
15
- }
16
-
17
- for (const key of ['nickname', 'signature']) {
18
- const m = section.match(new RegExp(`"${key}":"((?:[^"\\\\]|\\\\.)*)"`, 'g'));
19
- if (m) {
20
- const raw = m[0].replace(`"${key}":"`, '').replace(/"$/, '');
21
- data[key] = raw.replace(/\\n/g, '\n').replace(/\\\\/g, '\\');
22
- }
23
- }
24
-
25
- for (const key of ['ttSeller', 'verified']) {
26
- const m = section.match(new RegExp(`"${key}":\\s*(true|false)`));
27
- data[key] = m ? m[1] === 'true' : undefined;
28
- }
29
-
30
- for (const key of ['followerCount', 'followingCount', 'heartCount', 'videoCount', 'diggCount']) {
31
- const m = section.match(new RegExp(`"${key}":(\\d+)`));
32
- if (m) data[key] = parseInt(m[1], 10);
33
- }
34
-
35
- const mt = section.match(/"createTime":(\d+)/);
36
- if (mt) data.createTime = parseInt(mt[1], 10);
37
-
38
- const ma = section.match(/"avatarLarger":"([^"]*)/);
39
- if (ma) data.avatarLarger = ma[1].replace(/\\u002F/g, '/');
40
-
41
- return data;
42
- }
43
-
44
- export function extractLocationCreated(html) {
45
- const m = html.match(/"locationCreated":"([^"]*)/);
46
- return m ? m[1] : null;
47
- }
1
+ export const USER_SECTION_SIZE = 12000;
2
+
3
+ export function extractUserSection(html) {
4
+ const idx = html.indexOf('"uniqueId"');
5
+ if (idx < 0) return null;
6
+ return html.substring(idx, idx + USER_SECTION_SIZE);
7
+ }
8
+
9
+ export function parseUserSection(section) {
10
+ const data = {};
11
+
12
+ for (const key of ['uniqueId', 'uid', 'secUid']) {
13
+ const m = section.match(new RegExp(`"${key}":"([^"]*)`));
14
+ if (m) data[key] = m[1];
15
+ }
16
+
17
+ for (const key of ['nickname', 'signature']) {
18
+ const m = section.match(new RegExp(`"${key}":"((?:[^"\\\\]|\\\\.)*)"`, 'g'));
19
+ if (m) {
20
+ const raw = m[0].replace(`"${key}":"`, '').replace(/"$/, '');
21
+ data[key] = raw.replace(/\\n/g, '\n').replace(/\\\\/g, '\\');
22
+ }
23
+ }
24
+
25
+ for (const key of ['ttSeller', 'verified']) {
26
+ const m = section.match(new RegExp(`"${key}":\\s*(true|false)`));
27
+ data[key] = m ? m[1] === 'true' : undefined;
28
+ }
29
+
30
+ for (const key of ['followerCount', 'followingCount', 'heartCount', 'videoCount', 'diggCount']) {
31
+ const m = section.match(new RegExp(`"${key}":(\\d+)`));
32
+ if (m) data[key] = parseInt(m[1], 10);
33
+ }
34
+
35
+ const mt = section.match(/"createTime":(\d+)/);
36
+ if (mt) data.createTime = parseInt(mt[1], 10);
37
+
38
+ const ma = section.match(/"avatarLarger":"([^"]*)/);
39
+ if (ma) data.avatarLarger = ma[1].replace(/\\u002F/g, '/');
40
+
41
+ return data;
42
+ }
43
+
44
+ export function extractLocationCreated(html) {
45
+ const m = html.match(/"locationCreated":"([^"]*)/);
46
+ return m ? m[1] : null;
47
+ }
package/src/lib/retry.js CHANGED
@@ -1,45 +1,45 @@
1
- import { delay } from './delay.js';
2
-
3
- const RETRYABLE_PATTERNS = [
4
- 'interrupted',
5
- 'Navigation.*interrupted',
6
- 'net::',
7
- 'ECONN',
8
- 'ETIMEDOUT',
9
- 'ENOTFOUND',
10
- 'EAI_AGAIN',
11
- 'ESOCKETRESET',
12
- 'connection.*refused',
13
- 'connection.*reset',
14
- 'failed.*navigate',
15
- 'target.*closed',
16
- 'crash',
17
- '代理错误',
18
- ];
19
-
20
- export function isRetryableError(error) {
21
- if (!error) return false;
22
- const msg = error.message || error.toString() || '';
23
- return RETRYABLE_PATTERNS.some(p => new RegExp(p, 'i').test(msg));
24
- }
25
-
26
- export async function retryWithBackoff(fn, { maxRetries = 3, baseDelay = 3000, log } = {}) {
27
- let lastError;
28
- for (let attempt = 0; attempt <= maxRetries; attempt++) {
29
- try {
30
- return await fn();
31
- } catch (error) {
32
- lastError = error;
33
- if (attempt >= maxRetries || !isRetryableError(error)) {
34
- throw error;
35
- }
36
- const jitter = Math.random() * 2000;
37
- const waitTime = baseDelay * Math.pow(2, attempt) + jitter;
38
- if (log) {
39
- log(` [重试] ${attempt + 1}/${maxRetries},${Math.round(waitTime / 1000)}s 后重试...`);
40
- }
41
- await delay(Math.round(waitTime), Math.round(waitTime));
42
- }
43
- }
44
- throw lastError;
45
- }
1
+ import { delay } from './delay.js';
2
+
3
+ const RETRYABLE_PATTERNS = [
4
+ 'interrupted',
5
+ 'Navigation.*interrupted',
6
+ 'net::',
7
+ 'ECONN',
8
+ 'ETIMEDOUT',
9
+ 'ENOTFOUND',
10
+ 'EAI_AGAIN',
11
+ 'ESOCKETRESET',
12
+ 'connection.*refused',
13
+ 'connection.*reset',
14
+ 'failed.*navigate',
15
+ 'target.*closed',
16
+ 'crash',
17
+ '代理错误',
18
+ ];
19
+
20
+ export function isRetryableError(error) {
21
+ if (!error) return false;
22
+ const msg = error.message || error.toString() || '';
23
+ return RETRYABLE_PATTERNS.some(p => new RegExp(p, 'i').test(msg));
24
+ }
25
+
26
+ export async function retryWithBackoff(fn, { maxRetries = 3, baseDelay = 3000, log } = {}) {
27
+ let lastError;
28
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
29
+ try {
30
+ return await fn();
31
+ } catch (error) {
32
+ lastError = error;
33
+ if (attempt >= maxRetries || !isRetryableError(error)) {
34
+ throw error;
35
+ }
36
+ const jitter = Math.random() * 2000;
37
+ const waitTime = baseDelay * Math.pow(2, attempt) + jitter;
38
+ if (log) {
39
+ log(` [重试] ${attempt + 1}/${maxRetries},${Math.round(waitTime / 1000)}s 后重试...`);
40
+ }
41
+ await delay(Math.round(waitTime), Math.round(waitTime));
42
+ }
43
+ }
44
+ throw lastError;
45
+ }
package/src/lib/scrape.js CHANGED
@@ -1,40 +1,40 @@
1
- import { extractUserSection, parseUserSection, extractLocationCreated } from './parser.js';
2
- import { fetchHtml, isProfileUrl } from './fetcher.js';
3
- import { toProfileUrl, isVideoUrl, extractUniqueId } from './url.js';
4
-
5
- export async function extractUserData(profileUrl, proxyUrl) {
6
- const profileHtml = await fetchHtml(profileUrl, proxyUrl);
7
- const section = extractUserSection(profileHtml);
8
- if (!section) throw new Error('无法解析用户信息');
9
- const data = parseUserSection(section);
10
- data.locationCreated = extractLocationCreated(profileHtml);
11
- return data;
12
- }
13
-
14
- export async function extractVideoLocation(videoUrl, proxyUrl) {
15
- const videoHtml = await fetchHtml(videoUrl, proxyUrl);
16
- return extractLocationCreated(videoHtml);
17
- }
18
-
19
- export async function processUrl(url, proxyUrl) {
20
- if (isProfileUrl(url)) {
21
- const profileUrl = toProfileUrl(url);
22
- const profileData = await extractUserData(profileUrl, proxyUrl);
23
- return [profileData];
24
- }
25
-
26
- if (isVideoUrl(url)) {
27
- const profileHandle = extractUniqueId(url);
28
- if (!profileHandle) throw new Error(`无法从视频URL提取用户主页: ${url}`);
29
-
30
- const profileUrl = toProfileUrl(profileHandle);
31
- const [profileData, locationCreated] = await Promise.all([
32
- extractUserData(profileUrl, proxyUrl),
33
- extractVideoLocation(url, proxyUrl),
34
- ]);
35
-
36
- return [{ ...profileData, locationCreated }];
37
- }
38
-
39
- return [];
40
- }
1
+ import { extractUserSection, parseUserSection, extractLocationCreated } from './parser.js';
2
+ import { fetchHtml, isProfileUrl } from './fetcher.js';
3
+ import { toProfileUrl, isVideoUrl, extractUniqueId } from './url.js';
4
+
5
+ export async function extractUserData(profileUrl, proxyUrl) {
6
+ const profileHtml = await fetchHtml(profileUrl, proxyUrl);
7
+ const section = extractUserSection(profileHtml);
8
+ if (!section) throw new Error('无法解析用户信息');
9
+ const data = parseUserSection(section);
10
+ data.locationCreated = extractLocationCreated(profileHtml);
11
+ return data;
12
+ }
13
+
14
+ export async function extractVideoLocation(videoUrl, proxyUrl) {
15
+ const videoHtml = await fetchHtml(videoUrl, proxyUrl);
16
+ return extractLocationCreated(videoHtml);
17
+ }
18
+
19
+ export async function processUrl(url, proxyUrl) {
20
+ if (isProfileUrl(url)) {
21
+ const profileUrl = toProfileUrl(url);
22
+ const profileData = await extractUserData(profileUrl, proxyUrl);
23
+ return [profileData];
24
+ }
25
+
26
+ if (isVideoUrl(url)) {
27
+ const profileHandle = extractUniqueId(url);
28
+ if (!profileHandle) throw new Error(`无法从视频URL提取用户主页: ${url}`);
29
+
30
+ const profileUrl = toProfileUrl(profileHandle);
31
+ const [profileData, locationCreated] = await Promise.all([
32
+ extractUserData(profileUrl, proxyUrl),
33
+ extractVideoLocation(url, proxyUrl),
34
+ ]);
35
+
36
+ return [{ ...profileData, locationCreated }];
37
+ }
38
+
39
+ return [];
40
+ }