MBG 7 Posted April 17, 2015 Report Share Posted April 17, 2015 First of all I would like to say HELLO to everyone,i am here completely new, just tried my first scrapping project....i cant figure out how to scrap the variable between -in this case £9 <div class="price fxac"> <div class="save-money dib mr10"> <span class="old-price"> £56 </span> </div> £9 <span class="fs25 ml10 save-money"> 85% off <!--e.g. 20percent off (first argument: number, second: percent symbol--> </span> </div> i am not able to scarp it with ubot, but when i tried with other scrapped i was able to scrap it by using option Tag text-xpath showed me this code: //DIV[@class=price fxac] , but ubot doesnt has this kind of functions I would really appreaciate if someone could help me... Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted April 17, 2015 Report Share Posted April 17, 2015 use 'large data' plugin when on page use $document text then use 'large list from xpath" pr something like that. (not in ubot at the moment) plugin is free http://www.ubotstudio.com/forum/index.php?/topic/16308-free-plugin-large-data/ please use a better title next time so when someone else looks for this same problem they can find it easier ie Please help scraping price with xpath. to change the title click edit at the bottom of your postthen where you hit save changes there is an button 'more options' or 'use full editor'which will allow you to change title 1 Quote Link to post Share on other sites
MBG 7 Posted April 17, 2015 Author Report Share Posted April 17, 2015 thanks for you answertitle already fixed:-) i did like you said....but.....problem...i do not understad how i should use that plugin and how it can help.... i have filled these field so: List field i putted: $document textText field:--------- what to put here?Xpath field: i putted the code from my scrapper //DIV[@class=price fxac] Sorry for stupid questions...i am complete newbie..was learning ony from Ubot videos... 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted April 18, 2015 Report Share Posted April 18, 2015 Thanks try this set(#doc text,"<div class=\"price fxac\"> <div class=\"save-money dib mr10\"> <span class=\"old-price\"> £56 </span> </div> £9 <span class=\"fs25 ml10 save-money\"> 85% off <!--e.g. 20percent off (first argument: number, second: percent symbol--> </span> </div>","Global")plugin command("Bigtable.dll", "Clear large list", "list name")plugin command("Bigtable.dll", "large List from Xpath", "list name", #doc text, "//span[@class=\'old-price\']/text()", "replace")alert($plugin function("Bigtable.dll", "Large list return", "list name"))alert($trim($plugin function("Bigtable.dll", "Large list item", "list name", 0)))stop scriptplugin command("Bigtable.dll", "large List from Xpath", "list name", $document text, "//div[@class=\'price fxac\']", "replace")when you navigate to the site make sure everything is loaded (wait for element) then use $document text to get the source fron the page you can use it in place where I put #doc text like this plugin command("Bigtable.dll", "large List from Xpath", "list name", $document text, "//div[@class=\'price fxac\']", "replace") if you have trouble finding something press ctrl+e and start typing the name I uploaded so you dont have to type all that. Hope thtat helps CDexample--xpath-largedataPI.ubot 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.