@xiaohhhh1/canvas-agent 0.4.31 → 0.4.32
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.
|
@@ -330,8 +330,8 @@ export class FastMossIntegration {
|
|
|
330
330
|
await this.openVideoLearningPage(fastMossVideoLearningRankUrl(market), market === "GLOBAL" ? "全球视频商品榜" : `${market} 视频商品榜`);
|
|
331
331
|
await collect("commerce-video", Math.min(VIDEO_COMMERCE_TARGET, requestedTarget));
|
|
332
332
|
const aiDimensions = [
|
|
333
|
-
{ dimension: "high-sales", labels: ["高销量榜单", "High Sales"] },
|
|
334
333
|
{ dimension: "high-roas", labels: ["高ROAS榜单", "High ROAS"] },
|
|
334
|
+
{ dimension: "high-sales", labels: ["高销量榜单", "High Sales"] },
|
|
335
335
|
{ dimension: "high-exposure", labels: ["高曝光榜单", "High Exposure"] },
|
|
336
336
|
{ dimension: "high-engagement", labels: ["高互动榜单", "High Engagement"] },
|
|
337
337
|
];
|
|
@@ -353,15 +353,6 @@ export class FastMossIntegration {
|
|
|
353
353
|
await this.inspect();
|
|
354
354
|
if (this.verificationRequired)
|
|
355
355
|
throw new Error("采集 AI 视频榜时出现滑块验证;请手动完成后重新采集");
|
|
356
|
-
await this.waitForVideoResponseTasks();
|
|
357
|
-
// High Sales is server-rendered on the first load, so there is no
|
|
358
|
-
// ranking JSON response to observe. Moving to page 2 through the
|
|
359
|
-
// visible pager produces the same public ranking data as every
|
|
360
|
-
// subsequent tab and avoids scraping hidden application state.
|
|
361
|
-
if (entryIndex === 0 && this.observedVideoRecords.length === 0 && await this.clickVideoLearningNextPage()) {
|
|
362
|
-
await this.waitForVideoLearningNavigation();
|
|
363
|
-
await this.waitForVideoResponseTasks();
|
|
364
|
-
}
|
|
365
356
|
const remaining = Math.min(VIDEO_AI_TARGET_PER_DIMENSION, requestedTarget - sources.length);
|
|
366
357
|
await collect(entry.dimension, remaining);
|
|
367
358
|
}
|