autox.js脚本,采集抖音直播间评论信息

autox.js脚本,采集抖音直播间评论信息
复制代码
auto();
history={};
console.show(true);

while(true){
    listBox=className("androidx.recyclerview.widget.RecyclerView").findOne(2000);
    if(!listBox){
        continue;
    }
    allList=listBox.children();
    for (var i = 0; i < allList.length; i++) {
       
        var user = allList[i];
        if(!user) continue;
        var content = user.text();
        if(!content) continue;
        content=content.replace(/\u200E/g, '').replace(/^[\*\s]+/,"").trim();
        if(history[content]) continue;
        //打印内容
        console.log(content);
        history[content]=1;
        if(history.length>200){
            history.pop();
        }
    }
    sleep(1000);
}
复制代码

 

posted @   唯一客服系统开发笔记  阅读(405)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2023-05-13 Docker部署-唯一客服系统文档中心
2023-05-13 百度Chat AI上线了与Bing Chat AI的差距还是挺大的下面是两个演示案例
2022-05-13 [Golang] golang中使用正则表达式替换字符串
2021-05-13 [css] position:fixed居中问题
2021-05-13 [javascript] vue中elementui 回车事件、获取焦点、按键等事件
2021-05-13 [javascript] js获取url中的get参数
2021-05-13 [Linux] ps+awk +while 实时查看进程内存占用情况
点击右上角即可分享
微信分享提示
1
chat with us