Jump to content
UBot Underground

Please Help Scraping Price With Xpath.


Recommended Posts

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...

 

Link to post
Share on other sites

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 post

then where you hit save changes there is an button 'more options' or 'use full editor'

which will allow you to change title

  • Like 1
Link to post
Share on other sites

thanks for you answer

title 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 text

Text 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...

  • Like 1
Link to post
Share on other sites

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 script
plugin 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

 

CD

example--xpath-largedataPI.ubot

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...