Extracting data from a website using iMacros -
Extracting data from a website using iMacros -
i new imacros seem have basic understanding of how works. however, have 2 problems can't seem resolve. imacros loads , executable service ran whenever needed information. 1 time info extracted service takes , writes file on servers c drive. has been working fine till month ago. amazon changed website , can't script cooperate. help resolving appreciated.
the script not extract text, and a new imacros browser opens after each run-through of script.i have researched internet, manipulated script many different ways, , have used record option, wizard create script extract data. i'm not sure missing. script below.
version build=7401598 tab t=1 url goto=https://sellercentral.amazon.com/gp/fba/revenue-calculator/index.html/ref=au_xx_cont_xx?ie=utf8&lang=en_us wait seconds=10 tag pos=1 type=input:text form=name:search-form attr=id:search-string content={{asin}} wait seconds=10 tag pos=1 type=button attr=id:search-products wait seconds=10 tag pos=1 type=button attr=id:update-fees-link wait seconds=10 tag pos=1 type=span attr=txt:order<sp>handling wait seconds=10 tag pos=1 type=span attr=txt:pick<sp>&<sp>pack wait seconds=10 tag pos=1 type=span attr=txt:weight<sp>handling wait seconds=10
the text need extract order handling, pick & pack, weight handling.
you should seek placing extract=txt after commands. check html of page , create command if record doesn't work. if illustration have link on page it's html code.
<a href="www.somestuff.com">click me</a>
imacros extract link , text are.
tag pos=1 type=a attr=href:www.somestuff.com extract=txt tag pos=1 type=a attr=href:www.somestuff.com extract=href
there few other variations main part. in case proper code.
tag pos=1 type=button attr=id:search-products extract = txt wait seconds=10 tag pos=1 type=button attr=id:update-fees-link extract = txt wait seconds=10 tag pos=1 type=span attr=txt:order<sp>handling extract = txt wait seconds=10 tag pos=1 type=span attr=txt:pick<sp>&<sp>pack extract = txt wait seconds=10 tag pos=1 type=span attr=txt:weight<sp>handling extract = txt wait seconds=10
try , please utilize imacros firefox addon this.
edit:
you can declare 1 scraping macro in javascript.
var macroscrape; macroscrape ="code:"; macroscrape +="tag pos=1 type=button attr=id:search-products extract = txt"; iimplay(macroscrape) var text=iimgetlastextract(); alert(text);
i utilize 1 time extract command in 1 time macro. if need more info scraped utilize more macro codes declared variable in illustration above. work if know how utilize it.
imacros back upwards slow.
imacros
Comments
Post a Comment