We have created a site that grabs products, Titles and Prices from websites using XPATH and Inspect Element.
Oftentimes there is no opportunity to 'grab' the correct XPATH code and I'm wondering if there is a better way.
For example - on this page:-
The XPATH for the title, and the XPATH for the price aren't very clear.
THIS - //*[@id="product"]/div/div/h1
for example - is not parsing the Product title properly.
I need someone to be able to work alongside me to help me extract the best XPATH strings to insert into my scrapers so my excel sheet isn't all blank!
Other pages like this one...
I really need the title 'Twilight Bath Bomb' to be extracted here.
If I grab /html/head/title there is too much information
and if I grab //*[@id="pdpMain"]/div/div/h1
It misses out the 'Bath Bomb'