Hola, a ver si alguien que domine el mundo de las imacros me puede echar una mano. Estoy intentando hacer una imacro que vaya rotando proxys pero no lo consigo, parto de la siguiente imacro:
VERSION BUILD=6240709 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !DATASOURCE proxylist.csv
SET !DATASOURCE_COLUMNS 2
'Increase the current position in the file with each loop
SET !DATASOURCE_LINE {{!LOOP}
'clear cookies and cache:
CLEAR
URL GOTO=about:config
'some proxies are slow, set the timeout to 90 seconds:
URL GOTO=javascript:gPrefBranch.setIntPref("network.http.keep-alive.timeout",900);
URL GOTO=about:config
'set the proxy URL
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL1}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
'set the proxy port:
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL2}});
URL GOTO=about:config
'turn the proxy on
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.type",1)
Espero sus respuestas, gracias.
P.D: si alguien sabe alguna otra manera para ir cambiando proxys que no sea a través de una imacro, también me vale
VERSION BUILD=6240709 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !DATASOURCE proxylist.csv
SET !DATASOURCE_COLUMNS 2
'Increase the current position in the file with each loop
SET !DATASOURCE_LINE {{!LOOP}
'clear cookies and cache:
CLEAR
URL GOTO=about:config
'some proxies are slow, set the timeout to 90 seconds:
URL GOTO=javascript:gPrefBranch.setIntPref("network.http.keep-alive.timeout",900);
URL GOTO=about:config
'set the proxy URL
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL1}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
'set the proxy port:
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL2}});
URL GOTO=about:config
'turn the proxy on
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.type",1)
Espero sus respuestas, gracias.
P.D: si alguien sabe alguna otra manera para ir cambiando proxys que no sea a través de una imacro, también me vale