All scenarios/ Developer

Custom extraction: CSS, XPath and regex rules on every page of a site

You need one fact from every page of a site and no standard check has it: the analytics ID each template loads, product pages without a price, the JSON-LD types in use, pages where a required script is missing. The data is in the HTML, sometimes only after JavaScript, and nobody wants to open five thousand pages to read it.

Who
A developer or technical SEO who reads HTML for a living
Site
A shop, a catalogue or a JavaScript app with many templates
What hurts
A fact that lives in the markup, on thousands of pages, in no report
What you need
A column per rule, for every page, that can be filtered and exported
  1. Decide which HTML the rules read

    Rules read each page's HTML, and the HTML after JavaScript where the page was rendered. Settings › Crawling › JavaScript rendering is Off, Auto (pages with little text are rendered, the default) or All pages. If the price or the schema is written by a script, pick All pages, or the rule reads the served HTML and finds nothing.

    Settings › Crawling — docs
    GLLmolfar screenshot: JavaScript rendering settings
    In the screenshot: JavaScript rendering settings
  2. Write one rule per question

    Crawl › Custom extraction & search… (Ctrl+Shift+K) takes five kinds of rule: CSS selector, XPath (a subset), regular expression, "HTML contains" and "HTML does not contain". Each takes what you need from the matches: text, inner HTML, an attribute value, the first group of a regex, a count, or yes/no. `//link[@rel='canonical']/@href` gives a value; `"@type":"([^"]+)"` gives every JSON-LD type; `googletagmanager.com` with yes/no gives which pages load the tag.

    Custom extraction & search — docs
    GLLmolfar screenshot: Custom extraction
    In the screenshot: Custom extraction
  3. Test on one page before anything runs

    Put in one address and press Test: each rule's result on that page appears before the rules are saved. A rule the app cannot run — an XPath it does not read, a broken pattern — shows its error under the row then and there, so a crawl never comes back with an empty column you have to explain.

    Custom extraction & search — docs
    GLLmolfar screenshot: Custom extraction
    In the screenshot: Custom extraction
  4. Crawl the site, or only the templates

    The rules run during the next crawl. For a quick answer on a big site, Crawl › Crawl a list of URLs… (Ctrl+L) reads only the addresses you paste, say one of each template, and nothing else.

    Crawl a list of URLs — docs
    GLLmolfar screenshot: Crawl a list of URLs
    In the screenshot: Crawl a list of URLs
  5. Filter found and not found

    Each rule is a column in the Custom tab, one value per page, with two filters: found and not found. "Price: not found" is the list of product pages without a price; "Tag: not found" is where the analytics script is missing. The columns sort and export with the rest of the table.

    Custom — docs
    GLLmolfar screenshot: All pages table with the inspector
    In the screenshot: All pages table with the inspector
  6. Where markup ends, ask a model

    Some questions are not in the markup: what intent a page serves, whether its text answers its title. For those, Prompt on pages asks your own model one question per page and puts the answers in the same Custom tab, marked · AI. The prompt-column scenario walks through it.

    Custom — docs
    GLLmolfar screenshot: Prompt on pages
    In the screenshot: Prompt on pages
01

A column per rule

Values, counts or yes/no for every crawled page, read after JavaScript where the page was rendered.

02

The gaps as a list

"Not found" filters that turn a rule into the pages to fix: no price, no tag, no schema.

03

Rules you can trust

Each one tested on a real page before the crawl, and refused with a reason if it cannot run.

  • XPath is a subset, read by GLLmolfar's own small reader: paths with / and //, attributes, text(), positions and the common predicates (contains, starts-with, not, and, or). Written-out axes such as ancestor::, unions with | and functions such as count() are refused as an error under the rule.
  • A text or attribute value keeps up to 20 matches, joined, and up to 1,000 characters. For a whole article body, a prompt column or an export is the better tool.
  • A page that was not rendered is read as served. If the value comes from a script, the rule finds it only on rendered pages.
  • Rules change nothing in crawls already made: they fill columns on the next crawl, or on pages you re-crawl.
Is the XPath full XPath 1.0?
No, a documented subset. The dialog lists what it reads, and anything else is an error under the rule before the run, not an empty column after it.
Do rules see content added by JavaScript?
Yes, on pages that were rendered. Set JavaScript rendering to All pages when the value always comes from a script.
Can I check for something that should be on every page?
Yes: "HTML does not contain" with yes/no lists the pages where a required snippet, such as a consent script, is missing.

Try it on your own site.

GLLmolfar is in preview and runs on Windows and on Macs with Apple silicon.

Get GLLmolfar