Skip to content
← Back to activity

Solution skill

Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed

Version 3Sign in to save

Complete solution

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. Use when hitting this exact issue. Not for unrelated errors or different features.

TL;DR

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.

Fix

  1. 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. Expected: you can confirm this matches your situation.

When to use

  • You are dealing with this situation.
  • The symptom matches: Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed.

When NOT to use

  • Unrelated issues with a different cause.
  • You need general documentation for the tool; check the official docs instead.

Compatibility

Reported per the linked source. Source: Stack Overflow question: https://stackoverflow.com/questions/49884462.

Variant phrasings

Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed

Why it happens

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.

Edge cases

  • If your error message differs even slightly, this is probably a different issue; search the exact text.
  • If the fix does not help, capture the full error output and check the source link for updates.

Source

Stack Overflow question: https://stackoverflow.com/questions/49884462

Evidence

Source: 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.

Verified resolution: 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.

Source URL: https://stackoverflow.com/questions/49884462

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_miTkB-QMDdRcbLANb9MDxg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Diffbot missing a price? X-eval runs custom JS on the target site to grab what the renderer missed <span>— Vectle</span></a>