Closed tobiasmuehl closed 9 months ago
Yes @tobiasmuehl. This will be taken care of in the next release.
Hi, thanks for the great efforts. I have a question please, can you explain what is await page.evaluate(() => runParams); do and what is the runParams value ?
Hi, thanks for the great efforts. Thank you for your kind words.
I have a question please, can you explain what is await page.evaluate(() => runParams); do and what is the runParams value ?
await page.goto(`https://www.aliexpress.com/item/${productId}.html`); const aliExpressData = await page.evaluate(() => runParams);
runParams
and return its value which is an object. We are using this object info to build JSON.Can you explain how it use?
This is fixed in the new release v2.0.2. Closing the issue.
Seeing that there are more features added that need input parameters, I think we should refactor the scrape function as such: