imacros

How to automate saving webpages?

谁说胖子不能爱 提交于 2019-12-17 10:10:00
问题 I need to archive several hundred webpages in the style of what browsers call "Save as, complete", meaning they save an HTML file for the page itself along with a folder full of other files needed to render the page correctly, such as CSS, JS, and image files. This allows the pages to be viewed offline looking the same as when displayed online. Here are the methods I've tried and the problems with each: Manual process in Firefox : On the link for the next page, right click. Type "A" for "Save

iMacros randomly stops in a loop

拥有回忆 提交于 2019-12-13 14:28:52
问题 I'm facing a problem that my imacro script just doesn't continue looping and freezes after a couple of loops, did anyone of you already face such problem? Here's my script: SET !TIMEOUT_PAGE 1 SET !TIMEOUT_STEP 1 SET !ERRORIGNORE YES SET !ERRORCONTINUE YES SET !LOADCHECK YES URL GOTO=http://web.stagram.com/tag/fun/ TAG POS=1 TYPE=IMG ATTR=SRC:http://cdn.stagram.com/img/like.png WAIT SECONDS=8 TAG POS=2 TYPE=IMG ATTR=SRC:http://cdn.stagram.com/img/like.png WAIT SECONDS=8 TAG POS=3 TYPE=IMG

s.split with TITLE don't work? [duplicate]

有些话、适合烂在心里 提交于 2019-12-13 10:50:10
问题 This question already has answers here : Extract a part of a TITLE and open it in a url? (2 answers) Closed 5 years ago . I'm using iMacros. I want to extract/split designperks from: title="designperks's Instagram Profile" So I'm using: SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; s.split(\"'\"); ") But that doesn't work, and it should, do you know why? Many thanks! 回答1: var title="designperks's Instagram Profile"; s= title.split("'"); console.log(s[0]) // required output check this. 回答2: var

if else imacros with javascript command

我的未来我决定 提交于 2019-12-13 10:05:16
问题 please help me with my script i want to check the checkbox if {{!COL22}} NOT NULL and uncheck the checkbox if {{!COL22}} is NULL but this script not work in this statement with formating condition if (\"{{!COL22}}\" = "") { var uncheck = "CODE:"; uncheck += "FRAME NAME=\"rf\"" + "\n"; uncheck += "TAG POS=1 TYPE=LABEL ATTR=ONCLICK:publishVipJS.toggleSaleAttr(this,'text');&&FOR:testsale2260958&&DATA:9248:2260958&&TXT:" + "\n"; uncheck += "TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:testsale2260958

How do I set the Select All “checkbox” iMacros Without using the button “Play (Loop)”

牧云@^-^@ 提交于 2019-12-13 08:01:13
问题 How do I set the Select All "checkbox" iMacros Without using the button "Play (Loop)" and without making the tag to 50 lines since our site I visited was no key select all and I need to choose 50 categories. Here's the code that I use and try This version javascript Imacros: var macro; macro = "CODE:"; macro += "TAG POS={{i}} TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES" + "\n"; macro += "WAIT SECONDS=0" + "\n"; for(i=1;i<=50;i++){ iimSet("i",i); iimPlay(macro); }

How to load jQuery and Bootstrap within iMacro

岁酱吖の 提交于 2019-12-13 06:59:10
问题 I was able to load jQuery successfully within an iMacros however I couldn't load bootstrap.js. iMacros tells me that the function .modal doesn't exist. loadScriptFromURL('http://localhost.com:7001/ybswcsstub/resources/plugins/jquery-1.10.2.min.js'); $ = window.$, JQuery = window.JQuery; $.getScript('http://localhost.com:7001/ybswcsstub/resources/plugins/bootstrap/js/bootstrap.js'); $('body').append('<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel

imacros javascript conditional skip of data extract

廉价感情. 提交于 2019-12-13 06:13:46
问题 while executing below loop fails as soon as a advertisement is encountered. Site purposefully put random advertisement. is it possible to handle it with #EANF# not sure how to code it. please help. Something like this. //if(text=="#EANF#" || text=="undefined" || text==null || text=="" ) //{ ////handle the loop //} var jsLF="\n"; var ret=null; var proxynovaurl; //open url proxynovaurl = "CODE:"; proxynovaurl += "VERSION BUILD=9002379" + jsLF; proxynovaurl += "TAB T=1" + jsLF; proxynovaurl +=

need help to select month in gmail account with imacros

爱⌒轻易说出口 提交于 2019-12-13 05:57:27
问题 To create gmail account with imacros i have completed everything but getting problem only with month, i have tried a lots but can not select month with imacros. http://i.stack.imgur.com/nBoDI.jpg The codes for the month are as: <div class="goog-menu goog-menu-vertical" aria-haspopup="true" role="listbox"> <div id=":1" style="-moz-user-select: none;" role="option" class="goog-menuitem"><div class="goog-menuitem-content">January</div></div> <div id=":2" style="-moz-user-select: none;" role=

imacros take from multi files in DATASOURCE loop

三世轮回 提交于 2019-12-12 06:07:16
问题 I have imacros firefox Add-ons that takes data from one csv file. But i need to tell imacros to take data from multi files as loop here my script is take from 1.csv but I've 2.csv & 3.csv & 4.csv and more.. i need it to take from them as loop like if i run play imacros will take data from 1.csv once they finish start again but from 2.csv ..etc like that.. with the same rule for all.. also the files all are the same columns same data but cannot merge them as one file.csv SET !DATASOURCE /Users

Waiting 20 seconds in iMacros

夙愿已清 提交于 2019-12-12 05:59:10
问题 U have imacros script and I want to add wait seconds 60 When i reach to 20 . This is my code now: var macro; macro = "CODE:"; macro += "URL GOTO=http://example.com/msg?uid={{i}}\n"; macro +="TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:msg ATTR=ID:subject CONTENT=hello\n"; macro +="TAG POS=1 TYPE=TEXTAREA FORM=NAME:msg ATTR=ID:message CONTENT=hi\n"; macro +="TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:msg ATTR=ID:btn_save"; for (var i=1;i<300;i++){ iimSet("i",i) iimPlay(macro) } iimDisplay("Script completed.