tahoecale 2 Posted June 1, 2021 Report Share Posted June 1, 2021 <div class="card-header d-flex flex-row"><ch-profile-avatar type="medium" _nghost-cwh-c99=""><div _ngcontent-cwh-c99="" class="avatar medium ng-star-inserted"><img _ngcontent-cwh-c99="" alt="Avatar" class="rounded-circle mx-auto" src="../assets/default-avatar.jpeg"><!----><!----></div><!----></ch-profile-avatar><div class="user ng-star-inserted"><h5>Bee17</h5><p>@Bee17</p></div><!----><div class="ml-auto"><div class="d-flex flex-row justify-content-end"><p class="time">21m ago</p><i class="fas options fa-ellipsis-h ng-star-inserted"></i><!----></div><!----></div><!----></div> Thats the div i need scraped as you can see it says @bee17 thats what I want to scrape but everything i do gives a error (Object reference not set to an instance on an object) im using Exbrowser btw add item to list(%gdfdgf,$plugin function("ExBrowser.dll", "$ExBrowser Scrape Element Attribute", "x://div[@class=\"user ng-star-inserted\"]", "innertext"),"Don\'t Delete","Global") Quote Link to post Share on other sites
hare ram 23 Posted June 1, 2021 Report Share Posted June 1, 2021 (edited) Try :- set(#scrape,"<div class=\"card-header d-flex flex-row\"><ch-profile-avatar type=\"medium\" _nghost-cwh-c99=\"\"><div _ngcontent-cwh-c99=\"\" class=\"avatar medium ng-star-inserted\"><img _ngcontent-cwh-c99=\"\" alt=\"Avatar\" class=\"rounded-circle mx-auto\" src=\"../assets/default-avatar.jpeg\"><!----><!----></div><!----></ch-profile-avatar><div class=\"user ng-star-inserted\"><h5>Bee17</h5><p>@Bee17</p></div><!----><div class=\"ml-auto\"><div class=\"d-flex flex-row justify-content-end\"><p class=\"time\">21m ago</p><i class=\"fas options fa-ellipsis-h ng-star-inserted\"></i><!----></div><!----></div><!----></div>","Global") alert($plugin function("ExBrowser.dll", "$ExBrowser Generic Xpath Parser", #scrape, "x://div[@class=\"user ng-star-inserted\"]", "innerText", "")) or ping me Ping me on my mail -harebot357@gmail.com i will guide you how you can find right x path. Edited June 1, 2021 by hare ram 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.