onst axios = require('axios');

async function fetchProductData(url) {
  try {
    const response = await axios.get(url);
    const htmlContent = response.data;
    // Now, you can parse the HTML content or process it as needed.
    // For parsing, you can use libraries like 'cheerio'.
    // Example: const parsedData = parseHTML(htmlContent);
    return htmlContent;
  } catch (error) {
    console.error('Error fetching data:', error);
  }
}

const productUrl = 'https://example.com/product-page';
fetchProductData(productUrl)
  .then((htmlContent) => {
    // Process the HTML content or perform further operations.
  });