-
Content Count
133 -
Joined
-
Last visited
-
Days Won
2
Posts posted by Pete_UK
-
-
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.
-
?? SPACE after INSERT INTO
-
What is included in the REGEX source code? I couldn't work it out from the sales page?
-
Got it.
I now see all the options available for custom formatting. I didn't realise the drop-downs on that page were active. I though it was a screen shot!
Thanks, and sorry for being a dumb-ass
-
The RoundTrip format is the one I want to use but I can't get it to return the Off-Sett value:
2014-09-21T17:06:32.0000000
-
Is it possible to add in the option to get the date and time in ISO 8601 formats? http://www.w3.org/TR/NOTE-datetime
What I am needing is complete date plus hours, minutes, seconds, decimal fraction of a second and time zone offset of "+hh:mm"YYYY-MM-DDThh:mm:ss.sTZD(eg)- 2014-08-05T13:46:02.06+01:00
- 2014-09-15T19:22:33.45-06:00
-
Answered my own question.... http://robobest.com/2013/11/22/hmac-sha1/
-
I think I may need this Kev. Do you have an example of it's use to put me on track?
-
Here is an updated file.
-
Awesome sauce.
-
I turned to using regular expressions to scrape each item individually.
-
-
Thanks TJ. Most appreciated.
Q... What version of VS do you recommend ..... 2010 or 2012 or something else?
-
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.
-
What's the best way to update an item in a LARGE LIST? Should I be using a Large Table and use the SET LARGE TABLE CELL instead?
-
No worries Dan.I'll let you know when i'm stuck.
-
Sharing my language file. Not perfect but something you can add to.
-
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
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?
-
Just signed up
Will be watching tonight
Roll-on a new bonus video!
-
Thanks Kev.
-
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?
-
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
-
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
-
Can you extend the discount Dan?
Ubot XML plugin - Ubot Discount
in Plugins
Posted
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")