BigEfromDaBX 25 Posted April 23, 2014 Report Share Posted April 23, 2014 I need to scrape this inventory list so that I can put it on to a wordpress page. Can anyone tell me the best way to do this.. Thanks. http://www.skywirecomm.com/?page_id=71 Quote Link to post Share on other sites
UBotBuddy 331 Posted April 24, 2014 Report Share Posted April 24, 2014 Here ya go! loop(1) { comment("setup bot") set(#var, $scrape attribute(<table,class="table1">, "class"), "Global") add list to list(%tmp, $list from text(#var, " "), "Don\'t Delete", "Global") set(#TableCNT, $list total(%tmp), "Global") clear list(%tmp) set(#var, $nothing, "Global") set(#tableIndx, "-1", "Global") } loop(#TableCNT) { increment(#tableIndx) scrape table($element offset(<table,class="table1">, #tableIndx), &tablex) save to file("{$special folder("Application")}\\Table{#tableIndx}.csv", &tablex) clear table(&tablex) } 1 Quote Link to post Share on other sites
BigEfromDaBX 25 Posted April 24, 2014 Author Report Share Posted April 24, 2014 Thanks it worked. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.