spa3212 1 Posted June 8, 2020 Report Share Posted June 8, 2020 <b>Current Tax Levy: </b>"this is the text to scrape"<br> I am trying to scrape "this is the text to scrape" I tried this with exbrowser scrape element But it only scrape (current tax levy) //b[contains(text(), 'Current Tax Levy:')] can you check this how to scrape Quote Link to post Share on other sites
tinku 6 Posted June 8, 2020 Report Share Posted June 8, 2020 try this:set(#innertext,$plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "x://b[contains(text(), \"Current Tax Levy:\'\"]/"),"Global") But if it not works i need to see the webpage. Quote Link to post Share on other sites
spa3212 1 Posted June 8, 2020 Author Report Share Posted June 8, 2020 https://www.dallasact.com/act_webdev/dallas/showdetail2.jsp?can=00000542731000000&ownerno=0 this is the url I need to scrape below details.Amount Current Tax Levy: $1,132.27 Current Amount Due: $0.00Prior Year Amount Due: $0.00Total Amount Due: $0.00 Thanks for your help.. Quote Link to post Share on other sites
stanf 43 Posted June 10, 2020 Report Share Posted June 10, 2020 not xpaththis is a regex problem (?<=Current Tax Levy.*)[\$0-9,.\n]* =================================== plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", $plugin function("ExBrowser.dll", "$ExBrowser Use Portable Browser", "Chrome"), "NO")plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://www.dallasact.com/act_webdev/dallas/showdetail2.jsp?can=00000542731000000&ownerno=0")set(#the text,$plugin function("ExBrowser.dll", "$ExBrowser Document Text"),"Global")set(#the_current_tax_levy,$plugin function("Advanced Data Text File.dll", "$trim 2", $find regular expression(#the text,"(?<=Current Tax Levy.*)[\\$0-9,.\\n]*"), "", "Trim All"),"Global") Quote Link to post Share on other sites
spa3212 1 Posted June 10, 2020 Author Report Share Posted June 10, 2020 (edited) Thanks for your help Edited June 10, 2020 by spa3212 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.