Jump to content
UBot Underground

[Sell] ►►Xpath Builder Pro◄◄


Recommended Posts

Hi Botters, I am trying to extract the URL link form in between the text but nothing is appearing:

<span class="_Vy">Blog</span><site>www.gamesviewer.com/<b>Ps4</b>-<b>Hitman</b></site>‎<w-bubble class="action-menu cd_ctl r-iG89Ax6bOzOo" jsl="$t t-R3dwiTmE0C4;$x 0;">

This is the xpath expression I am using:

//site[contains(text(),"site")]

If anybody can shed some light on where I am gone wrong would be greatly appreciated.

 

Thanks

 

The innertext in your example doesn't contain the word site. So it will return nothing.

 

If you want to extract innertext from elements that are below the element you selected, and you want to use contains at the same time, you need a different approach:

Please take a look here:

http://stackoverflow.com/questions/3655549/xpath-containstext-some-string-doesnt-work-when-used-with-node-with-more

 

Cheers

Dan

Link to post
Share on other sites
  • 1 month later...
  • Replies 169
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Regex isn't really designed for html documents and its very easy for a complex page to cause issues. You will also find you will have to make more and more complex regex to achieve certain things.   w

XPath Builder Pro has been updated 8/1/2021  and can  be downloaded inside of your account on https://www.exbrowser.net from your members dashboard Download and replace your files wi

Hi Dan,   Disregard, I replied too soon and made newbie mistake, I didn't realize I could override the "attribute to get" field and type in "content". Duh!   Sorry for the bother... but thank you for

Posted Images

Bugfix Release V1.2.7.6


Mainly for Windows 10 Users


 


If you are NOT on Windows 10, you don't need this update. But you can update as well.


 


No feature or UI changes.


No Auto Update


 


To download the update please login to the license servre and click on the download button.


Or Login to Zaxaa.com. The new version is available there as well.

Link to post
Share on other sites
  • 2 months later...
  • 4 weeks later...

Hi Dan

 

An expression like this works in xpath build pro, but doesnt in Exbrowser Scrape Element (im trying to get the inntertext - ie the actual phone number)

 

x://strong[contains(text(),"Phone number")]/following-sibling::text()[1]

 

Any ideas what I might be doing wrong

 

Thanks in advance

 

Hi HattoriHanzo

I saw your post notice flash up in my mail and thought i could offer my pearl of wisdom lmao, 

 

 

First off, once you get using Dans Xpath app you will wonder how you lived without it for so long, .. seriously !

 

ok, .. Dans software is pretty self explanatory once you get the hang of Regex itself, ... 

here are the 2 pages that help me understand how expressions are put together and how they react with each other :

http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/regular_expressions.html

http://regexr.com/

 

Try not to be overwhelmed when you see the first page it looks daunting but once you break it down and test some basic stuff the advanced stings start to make sense.

 

 

im sure Dan will be along shortly with some vid links anyway ( in fact im sure there are some demo videos on his website ;) )

but hope it helps a little.

 

 

EDIT : In fact he's already answered, im late to the party as usual LMAO

 

 

Cheers

CJ

Link to post
Share on other sites

Thanks guys for the kind words.

 

Xpath Builder Pro is a tool that helps you to build the expressions. But you should already know the basics about Xpath.

It's similar to all the Regex tools. If you have no idea how regex works then those tools won't help you much as well.

They still can help with some basic stuff, but as soon as it get's a bit more complicated.. It's done.

So I highly recommend to learn some basics first before you get this tool.

You can Google for some free Xpath tutorials. Or you can take a look at my video course:

http://www.bot-factory.com/xpath-video-tutorials/

Link to post
Share on other sites

Please help, how to get link contain innertext for exbrowser

<a href="/groups/449164912345678?view=permalink&id=9386061112345678&ref=bookmarks&_ft_"><abbr>Just now</abbr></a>

target : /groups/449164912345678?view=permalink&id=9386061112345678&ref=bookmarks&_ft_

 

already tried all but it does not work

x://abbr[contains(text(),"Just now")]
alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element Attribute", "x://abbr[contains(text(),\"Just now\")]", "href"))
alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "x://a[contains(text(),\"Just now\")]"))
alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element Attribute", "x://a[contains(text(),\"Just now\")]", "href"))

thank you!

Link to post
Share on other sites

Ok, before you can solve this "problem", you have to understand how the whole thing works.
 
HTML and XLM has different "levels". In your example the A element is Level1. And the abbr element is level 2.
That means abbr is within a. 
 
Now. if you select the abbr element with:
//abbr[contains(text(),"Just now")]

You can not extract data from a different element. In your case you want to extract data from the a element that is one level above the one you selected. 

To do that, you have to move one level up from the element you selected.

 

To do that you use /..

 

So in your example this would look like:

set(#data,"<a href=\"/groups/449164912345678?view=permalink&id=9386061112345678&ref=bookmarks&_ft_\"><abbr>Just now</abbr></a>","Global")
alert($plugin function("ExBrowser.dll", "$ExBrowser Generic Xpath Parser", #data, "//abbr[contains(text(),\"Just now\")]/..", "href", "True"))

This stuff and more is covered in my Xpath Tutorial Videos:

http://www.bot-factory.com/xpath-video-tutorials/

 

Just $27 Bucks. And you learn 95% of everything you need with Xpath.

Cheers

Dan

Link to post
Share on other sites
  • 4 weeks later...
  • 1 month later...

Please Update to latest Version ASAP:

V.1.2.7.7

This Version is managed by the new License Server.
Previous Versions are managed by the old one.

They might share the same login (email), but the passwords are not synchronized. 

Please check your Emails within the next hours for more details.

PS: Old Lic Server and old Versions will be offline in 7 days!

 

If this is not possible for you, or something is not working:

https://danwan.supportsystem.com/

Link to post
Share on other sites
  • 1 month later...
  • 4 months later...
  • 2 years later...

Any updates planned for this? I can't get certain websites to load in it.

 

No, because most of the time it makes no sense to use the internal browser. The websites who don't work in that browser, probably are bigger websites who have optimized code for different browser versions anyways.

So the xpath you generate within the Xpath Builder Pro browser engine, might not work in Chrome or firefox, because the website shows different (optimized) html code for the particular browser.

 

So I always recommend to copy the html code of the element from the browser you are really using to xpath builder pro, and use it to build the expression that way.

 

Please watch the following video, where I explain that process:

https://www.youtube.com/watch?v=oqFuEMkTQzQ

 

Regards

Dan

Link to post
Share on other sites
  • 2 months later...
  • 2 months later...

Xpath Builder V2.1 Email sent to all customers

If you didn't get it, or you don't have a V2.1 license, please open a support ticket here:

https://exbrowser.bot-factory.com/support

And send all your details. 
Paypal Email. When did you purchase. Do you own a EXB V1 license? What's your V1 license email.
The more infos you sent, the easier I can find you and solve the problem.

Link to post
Share on other sites
  • 1 year later...

XPath Builder Pro has been updated and can  be downloaded

inside of your account on https://www.exbrowser.net

from your members dashboard


Download and replace your files with those from download.
No longer tied to your ExBrowser license.

 

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