Jump to content
UBot Underground

I need to scrape this Inventory List


Recommended Posts

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)
}
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...