XPathOnUrl for Amazon item_name (Product Title)

Hi fellow XPathers,

I've recently started using this tool and it's working well to return the Amazon ASIN:
=XPathOnUrl("http://www.amazon.co.uk/s?field-keywords="&B$1, "//li[@id='result_0']", "data-asin")

However, is it also possible to return the item_name/data-attribute/Product Name?

I've tried a few things but haven't managed to get it to work.

Thanks in advance :slight_smile:

Are you trying to get the product title from an individual product page? If so, try using this for your XPath:

//*[@id='productTitle']

There's also a plugin for Chrome called XPath Helper Wizard which will also generate some alternate XPaths, different from what the Inspector in Chrome will.

1 Like