peterclough12 0 Posted October 24, 2016 Report Share Posted October 24, 2016 In previous versions when you used a 'type text' to type text into the search bar in Amazon it used to show the Search Suggestions that Amazon would return in your regular browser. I use these Search Suggestions as part of my bot. When I say previous version I can only really comment on 5.5.13 which is on my laptop & the bot still shows the search suggestions. I would use the laptop but the performance is lacking & it keeps over-heating. If I click manually and type a space in the UBot version of the browser it shows the the Search Suggestions but not when I use the UBot Click command. Does anybody have any suggestions? I suppose I could put in a 'pause script' & a message saying I need to manually click Quote Link to post Share on other sites
pash 504 Posted October 24, 2016 Report Share Posted October 24, 2016 it work but not good.if have other way i post this. navigate("http://www.amazon.com/","Wait") wait for browser event("Everything Loaded","") wait(1) comment("change this. it different each bot.") plugin command("WindowsCommands.dll", "type keys", "Test 6.ubot*", "HwndWrapper[Ubot Studio.exe;;9965bf92-415d-441f-b08e-7d94b143995e]", 896, 165, "dll") wait(1) alert($scrape attribute(<id="nav-flyout-searchAjax">,"innertext")) Quote Link to post Share on other sites
peterclough12 0 Posted October 24, 2016 Author Report Share Posted October 24, 2016 it work but not good.if have other way i post this. navigate("http://www.amazon.com/","Wait") wait for browser event("Everything Loaded","") wait(1) comment("change this. it different each bot.") plugin command("WindowsCommands.dll", "type keys", "Test 6.ubot*", "HwndWrapper[Ubot Studio.exe;;9965bf92-415d-441f-b08e-7d94b143995e]", 896, 165, "dll") wait(1) alert($scrape attribute(<id="nav-flyout-searchAjax">,"innertext")) Thanks pash I've already put in the following code: navigate("http://www.amazon.com","Wait") wait for element(<id="searchDropdownBox">,"","Appear") change dropdown(<id="searchDropdownBox">,"Kindle Store") wait(3) wait for element(<outerhtml="<option value=\"search-alias=digital-text\">Kindle Store</option>">,"","Appear") type text(<name="field-keywords">,#kw,"Standard") alert("Click the Search box, type in a Space then click Run") pause script I'm not familiar with the plugin command. Amazon are always changing their coding so I wouldn't know how to adapt mine to suit. I think I'll stick with what I've used for the minute. Thank you for all of the trouble you've gone to. I will check out the plugin command & what you've given me when I have a few minutes though. Quote Link to post Share on other sites
pash 504 Posted October 24, 2016 Report Share Posted October 24, 2016 or use this (it very easy and faster) navigate("http://completion.amazon.com/search/complete?search-alias=aps&client=amazon-search-ui&mkt=1&q=canon","Wait") Quote Link to post Share on other sites
peterclough12 0 Posted October 24, 2016 Author Report Share Posted October 24, 2016 or use this (it very easy and faster) navigate("http://completion.amazon.com/search/complete?search-alias=aps&client=amazon-search-ui&mkt=1&q=canon","Wait")Thank you so much for this. It is so much faster. This will save loads of time both in extracting the data as well as programming in the future. I have never come across 'completion.amazon.com' before Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 24, 2016 Report Share Posted October 24, 2016 I have never come across 'completion.amazon.com' before It's a hidden API, most sites with built in search engines use them. You can typically find them using Fiddler or Chrome Dev Tools look on the network tab when you type in the search box. Quote Link to post Share on other sites
peterclough12 0 Posted October 25, 2016 Author Report Share Posted October 25, 2016 It's a hidden API, most sites with built in search engines use them. You can typically find them using Fiddler or Chrome Dev Tools look on the network tab when you type in the search box.Thanks for that. I've had a look at the Amazon pagenusing the Chrome Dev Tools. I have to say that it's way beyond me to make any use of it. I think I'll have to stick with Regular Expressions etc on the source code when the pages are loaded to grab things like Best Sellers Rank. Thanks for pointing it all out though. Quote Link to post Share on other sites
peterclough12 0 Posted October 25, 2016 Author Report Share Posted October 25, 2016 or use this (it very easy and faster) navigate("http://completion.amazon.com/search/complete?search-alias=aps&client=amazon-search-ui&mkt=1&q=canon","Wait")Is there a fast way to get the category results down that show down the lefthand side of the search page? 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.