Tips for writing XPath expressions
Learn how to write effective XPath expressions for Custom Parser with proven techniques and best practices that ensure accurate data extraction.
HTML structure may differ between scraped and browser-loaded document
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div>
<h3>This is a product</h3>
<div id="price-container">
<p>This is the price:</p>
</div>
<p>And here is some description</p>
</div>
<script>
const priceContainer = document.querySelector("#price-container");
const priceElement = document.createElement("p");
priceElement.textContent = "123";
priceElement.id = "price"
priceContainer.insertAdjacentElement("beforeend", priceElement);
</script>
</body>
</html>

Make sure to write all possible HTML selectors for the target element
Suggested HTML selector writing flow

How to write parsing instructions

Parse product title
Parse description
Parse product variants
Last updated
Was this helpful?

