下载地址:https://www.pan38.com/share.php?code=pvvmX 提取码:8182
该脚本主要功能特点:
支持多平台配置化操作(抖音/快手)
包含智能广告识别跳过模块
模拟人类交互行为(随机滑动/点赞/评论)
集成分镜头效果控制模块(产品展示/教程类场景)
防检测机制(随机操作间隔/休息周期)
运行状态统计与异常处理
扩展建议:可结合AutoX.js实现支付宝等平台的视频自动化操作
"auto";
device.keepScreenOn();
const PLATFORMS = {
DOUYIN: {
package: "com.ss.android.ugc.aweme",
swipeArea: [0.5, 0.8, 0.5, 0.2],
adSelectors: ["#ad_container", ".ad-close-btn"]
},
KUAISHOU: {
package: "com.kuaishou.nebula",
swipeArea: [0.5, 0.7, 0.5, 0.3],
adSelectors: [".ad-skip", ".ad-close"]
}
};
class VideoBot {
constructor(platform) {
this.platform = platform;
this.operationCount = 0;
this.setupGestures();
}
setupGestures() {
this.swipeUp = () => swipe(...this.platform.swipeArea, random(300, 800));
this.swipeDown = () => swipe(...[...this.platform.swipeArea].reverse(), random(300, 800));
this.tapRandom = () => click(random(device.width0.2, device.width0.8),
random(device.height0.3, device.height0.7));
}
handleAds() {
this.platform.adSelectors.forEach(selector => {
if (selector.exists()) {
selector.findOne().click();
sleep(random(1000, 3000));
}
});
}
simulateHumanInteraction() {
const actions = [
() => { this.swipeUp(); sleep(random(3000, 8000)); },
() => { this.tapRandom(); sleep(random(2000, 5000)); },
() => {
if (random(1, 10) > 7) {
click("点赞");
sleep(random(1000, 2000));
}
},
() => {
if (random(1, 10) > 9) {
click("评论");
sleep(random(2000, 3000));
setText(randomText());
sleep(random(3000, 5000));
click("发送");
}
}
];
random(actions)();
}
runSession(minutes=30) {
const endTime = Date.now() + minutes * 60000;
while (Date.now() < endTime) {
this.handleAds();
this.simulateHumanInteraction();
this.operationCount++;
if (this.operationCount % 10 === 0) {
this.swipeDown(); // 偶尔回刷
sleep(random(5000, 10000));
}
if (random(1, 100) > 95) {
const breakTime = random(10, 30);
sleep(breakTime * 1000);
}
}
}
}
// 分镜头控制模块
class Storyboard {
static applyEffects(sceneType) {
const effects = {
"product": () => {
click(random(device.width0.4, device.width0.6),
random(device.height0.4, device.height0.6));
sleep(1500);
gesture(1000, [device.width/2, device.height/3],
[device.width/2, device.height2/3]);
},
"tutorial": () => {
for (let i = 0; i < 3; i++) {
click(device.width0.7, device.height*0.8);
sleep(800);
}
}
};
effects[sceneType]?.();
}
}
// 主程序
function main() {
const platform = random([PLATFORMS.DOUYIN, PLATFORMS.KUAISHOU]);
launchApp(platform.package);
sleep(5000);
const bot = new VideoBot(platform);
bot.runSession(60);
home();
toast("任务完成");
}
// 工具函数
function randomText() {
const texts = ["不错!", "学习了", "666", "有意思", "再来一个"];
return texts[random(0, texts.length-1)];
}
function random(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
main();