有没有办法在一个脚本中使用多个!DATASOURCES?
F.ex。
SET !DATASOURCE test1.csv
PROMPT {{!COL1}}
SET !DATASOURCE test2.csv
PROMPT {{!COL1}}
答案 0 :(得分:1)
如果您在每次运行时依次覆盖它们,则可以同时使用它们。如果行同步,你可以像你写的那样使用它,如果它们不匹配,你可以创建一个算法,根据你喜欢的任何方式根据!LOOP改变行!VAR1和!VAR2。
我的工作宏示例:
SET !LOOP 2
SET !DATASOURCE C:\Temp\ips.csv
SET !DATASOURCE_LINE {{!LOOP}}
PROXY ADDRESS={{!COL1}} BYPASS=*deathbycaptcha.com*
SET !VAR1 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 6; i++){string += letters[parseInt(Math.random() * 25)]}; string")
SET !VAR2 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 10; i++){string += letters[parseInt(Math.random() * 25)]}; string")
SET !DATASOURCE C:\Temp\Gmail.csv
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&hl=en
而不是将DATASOURCE_LINE设置为!LOOP它可以是另一个自定义!VAR