Jump to content
UBot Underground

Help Scraping A Post Text With Exbrowser Which In Under <Br>Tag


Recommended Posts

Hi,

I want to scrape post text using exbrowser plugin, I was able to scrape the whole text. But I want to scrape each line wise.

so that scraped data should look like this.

 

I am using this 

 alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "//*[@id=\"post-body-6805714621427306847\"]/p/text()[1]"))

 

but nothing is scraped can you guys plz help.

 

I could scrape the test 

 alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "//*[@id=\"post-body-6805714621427306847\"]/p"))

But this add all the test in single para instead lines, I want to keep the original layout of text as like in the post..

 

this is the post

https://englishgrammarhindime.blogspot.com/2020/05/test.html

 

Link to post
Share on other sites

try:-

set(#test,$list from text($plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://p", "innerHTML"),$new line),"Global")
set(#test,$replace(#test,"<br>",$new line),"Global")
 
if need any further assistance you can skype me at:-
live:69f5974a7e15e93e
Thanks & Regards
Tinku Singh
Edited by tinku
Link to post
Share on other sites

Many many thanks, for your help, can you please help me scraping 4th item from this list 

 

$plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements", "//*[@id=\"post-body-6805714621427306847\"]/p/text()[4]")

 

$plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements", "//p/br[5]")

 

but this doesn't work as well. I must be doing all wrong..

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