Linked Questions

Popular Questions

I need to extract car specs and features of all cars from carpages.co.uk, example page http://www.carpages.co.uk/guide/bmw/bmw-3-series-318i-se.asp and each feature have an image with ALT tags: standard / optional / not applicable

//div/following::div[contains(.,"Power Steering")]//img/@alt

I tried the above XPath but it get every row of features instead of getting only ALT tag of the the row I labelled it, in this example Power Steering. Removing a slash from //img made it to not extract anything.

I also need to extract other specifications such as Power, Torque, etc.

Can someone help me with a working XPath?

Related Questions