gpt4 book ai didi

javascript - 我如何通过 Javascript 设置循环 iMacros?

转载 作者:行者123 更新时间:2023-11-29 16:16:54 24 4
gpt4 key购买 nike

1) 我无法通过 javascript 添加设置循环 imacros,我该如何添加?

var macro;
macro = "CODE:";
macro += "VERSION BUILD=8011895" + "\n";
macro += "TAB T=1" + "\n";
macro += "SET !ERRORIGNORE YES" + "\n";
macro += "SET !EXTRACT_TEST_POPUP NO" + "\n";
macro += "SET !TIMEOUT 3" + "\n";
macro += "SET !EXTRACT NULL" + "\n";
//macro += "SET !LOOP 1" + "\n";
macro += "TAG POS={{loop}} TYPE=A ATTR=CLASS:twitter-timeline-link EXTRACT=TXT" + "\n";
macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE=twitter.csv" + "\n";
var extractedtext=iimGetLastExtract();
iimPlay(macro);

2) 我如何在没有 javascript 的情况下在 imacros 上使用该代码? (在 iim 上)

var extractedtext=iimGetLastExtract(); 

最佳答案

将您的 macros 代码指定为 javascript 字符串和前缀 CORE:

var urls = ['http://google.com', 'http://yahoo.com'];

for (var i in urls) {
var url = urls[i];
var returnCode = iimPlay('CODE: URL GOTO='+url);
}

关于javascript - 我如何通过 Javascript 设置循环 iMacros?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14147290/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com