Jump to content
UBot Underground

Pete_UK

Members
  • Content Count

    133
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Pete_UK

  1. Thanks for taking a look Aymen.

     

    Does the XML NODES VALUES bring back data for you? When I run it I get nothing.

     

    http://screencast.com/t/vKDVIW1Ls5tj

     

    set(#xml doc$read file("C:\\Users\\Pete\\Desktop\\ubot.xml"), "Global")
    set(#nodes$plugin function("xml plugin.dll""$xml nodes values"#xml doc"//SalesRank/Rank""InnerText"), "Global")
    add list to list(%qwe$plugin function("xml plugin.dll""$xml nodes values"#xml doc"//SalesRank/Rank""InnerText"), "Delete""Global")

  2. I'm having difficulty using this plugin with the XML files I'm getting from Amazon API's. See attached file.

     

    When I try XML to Table I only get 3 columns (see image)

     

    Code:

    plugin command("xml plugin.dll""XML to Table""C:\\Users\\Pete\\Desktop\\ubot.xml"&myXML)

     

    http://screencast.com/t/CVpnomHq7zcc

     

     

    Also, I can't figure out how I would select an element such as SalesRank from the XML file.

     

    Any help would be appreciated.

    ubot.xml

  3. plugin command("Bigtable.dll""Large list Remove item""test", 10)

    plugin command("Bigtable.dll""Large list insert""test", 10, "New Data")

     

    But I normally use a Large Table with SET LARGE TABLE CELL

     

    Dan

     

     

    what Dan said. When you move to the type of use you require I would always recommend moving to tables.

     

    Thanks guys.

     

    Tables it is from now on.

  4. Welcome on board Pete. 

     

    Any idea for another bonus video?  Please remember, it should be a special challenge. Something that hasn't been covered in the tutorials yet. 

    Not just another complicated website  B)

    Hi Dan,

     

    I am focused on Amazon right now (I'm a market place seller), so creating bots to help automate my workload (Listing, repricing etc..). One thing I am going to tackle is working working with the Amazon Seller Central API. I haven't done anything with it at the moment but I guess it boils down to Get/Post requests and dealing with XML etc.., but as far as training videos go this my not be a good topic for everyone as you need an Amazon Seller account.

     

    So, a similar topic could be something to do with the Amazon Associates Product Advertising API. I would think the way it works is going to be similar to the seller central way of working, plus it may be a lot more relevant to everyone else as there are lots of people with Amazon associate accounts trying to earn a few pennies as affiliates. Here is the main dev page: https://affiliate-program.amazon.co.uk/gp/advertising/api/detail/main.html and there is the Amazon Scratch Pad that would help build and test requests and view responses here: http://associates-amazon.s3.amazonaws.com/scratchpad/index.html

     

    I know this is not strict scraping webpages etc.. but for those sites that provide extensive API's it would (I think) open up doors for Ubot'ers to explore.

     

    What you think?

  5. Yep, I figured it must have been something to do with the append. That's actually what got me to try a list and watch in debug mode. From one issue to another :)

     

    So for this example do you recommend saving the data to a Large List (your plugin Kev) while in a thread and then processing the data once all threads are complete? I take it there shouldn't be any problem writing to the same list in multiple threads at the same time?

  6. Thanks for the info Kev. I'll check it out.

     

    I've noticed similar issues when writing out to a file when not using lists too.

    set(#i, 0, "Global")
    loop(10) {
        loop(15) {
            runMe(#i)
            increment(#i)
        }
    }
    define runMe(#counter) {
        thread {
            set(#gotPage, "{#counter} - QWERTY
    ", "Local")
            append to file("{$special folder("Desktop")}\\thread.txt", #gotPage, "End")
        }
    }
    
    

    Is this down to the THREAD command not working correctly or something else? Was thinking may be down to the APPEND TO FILE command. If one thread is already appending to the file when another thread tries to write, what happens? Does it just fail with no error message?

     

    Thanks,

    Pete

  7. I decided to test out the thread command.

     

    When I run the script below it seems to work okay. Watching the Debug window show the #i variable is the same as the %zlist list.

    But, when I run script several times in quick succession I notice some time there is a discrepancy See the attached image.

     

    As you can see the code is very simple so there doesn't seem to be much room for error, but obviously I am doing something wrong, somewhere .... OR ... is it that the thread command isn't working right?

    clear list(%zlist)
    set(#i, 0, "Global")
    loop(20) {
        loop(5) {
            runMe(#i)
            increment(#i)
        }
    }
    define runMe(#counter) {
        thread {
            add item to list(%zlist, #counter, "Don\'t Delete", "Global")
        }
    }
    
    

    http://content.screencast.com/users/Pete_1/folders/Jing/media/051781f7-2279-4e87-9bad-9bfa7bc1eb6d/2014-08-31_1801.png

     

    http://screencast.com/t/XnitPGSGoh

×
×
  • Create New...