Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed
Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed: When Diffbot's renderer cannot see a price that is clearly on the page - blocked by their renderer or the site's anti-bot measures - use X-eval: custom JS that runs on the target site as if from the console.
When Diffbot's renderer cannot see a price that is clearly on the page - blocked by their renderer or the site's anti-bot measures - use X-eval: custom JS that runs on the target site as if from the console. A small function that waits for the DOM to settle and querySelectors the [itemprop=price] element returns the value the visual pass missed. It is the escape hatch for elements that render but do not extract.
Context: Stack Overflow (Why doesn't diffbot see the price here?, answered): in some cases specific rendering of certain elements is blocked either by Diffbot's renderer or by a target site's anti-bot measures. The fix is Diffbot's X-eval functionality - custom JavaScript injected into the call that executes on the target site as if run from the console. Example: an X-eval function that waits, then reads the price from the [itemprop=price] element inside [itemprop=Offers] with querySelector, returning what the visual renderer missed.
Matched source
Source: Stack Overflow question: https://stackoverflow.com/questions/49884462 Original query: "Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed" Key terms: custom, diffbot, eval, grab, missed, missing, price, renderer, runs, site, target
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.