spa3212 1 Posted August 30, 2018 Report Share Posted August 30, 2018 I am looking to scrape content from a website, but I could not get where so looking for your help..plz help me get thing done.. plz see imagehttp://prntscr.com/koi4gy https://www.yes-lease.co.uk/personal-lease-cars/kia/stonic-4x4/stonic-suv-14-98-2-5dr-manual-start-stop-361594024 I want to scrape blue highlighted content all in single cell, how can this be done.. Thanks Quote Link to post Share on other sites
bestmacros 60 Posted August 30, 2018 Report Share Posted August 30, 2018 you need to scrape html code of div element with class=pricebox it has all needed data and prices - if you do not need prices you will need to remove from html div with class = pricediv - this will give you html with needed data only.After that you can strip html tags or get inner text of stated html and save it to single cell. Quote Link to post Share on other sites
Sanjeev 46 Posted August 30, 2018 Report Share Posted August 30, 2018 use the free xpath plugin and use the following xpath: //div[@class=pricebox]/div[2]/following-sibling::div This also works - but doesn't extract production status://span[@data-csstooltip]//parent::div Quote Link to post Share on other sites
pash 504 Posted August 30, 2018 Report Share Posted August 30, 2018 try alert($scrape attribute($element parent(<class="ttip">),"innertext")) 1 Quote Link to post Share on other sites
spa3212 1 Posted August 30, 2018 Author Report Share Posted August 30, 2018 Pash you are great..Thanks I learn new thing element parent..Thanks again Friend..and would like to than saneev and bestmarcos for looking into this matter, Pash I wish for good health for you..Get well soon. Quote Link to post Share on other sites
kill3rbko 12 Posted September 5, 2018 Report Share Posted September 5, 2018 Pash you are great..Thanks I learn new thing element parent..Thanks again Friend..and would like to than saneev and bestmarcos for looking into this matter, Pash I wish for good health for you..Get well soon.Great if Pash solved your problem! Just like his answer ! Quote Link to post Share on other sites
fastlinks 16 Posted September 19, 2018 Report Share Posted September 19, 2018 alert($scrape attribute(<class="colp_2">,"innertext")) i can only find this element, pash from where you find the <class=ttip> ? Quote Link to post Share on other sites
Sanjeev 46 Posted September 19, 2018 Report Share Posted September 19, 2018 Use chrome dev tools - right click on element on page -> select inspect then study the html source code... Quote Link to post Share on other sites
Sanjeev 46 Posted September 19, 2018 Report Share Posted September 19, 2018 from inside DevTool press ctrl + f - to open search window then type in ttip https://cl.ly/304e0fd41d02 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.