Skip to content

chore: enrich page metadata - #134

Merged
nikitachapovskii-dev merged 1 commit into
masterfrom
chore/enrich-metadata
Aug 4, 2026
Merged

chore: enrich page metadata#134
nikitachapovskii-dev merged 1 commit into
masterfrom
chore/enrich-metadata

Conversation

@nikitachapovskii-dev

Copy link
Copy Markdown
Collaborator

Ports the rest of the metadata from WCC: canonicalUrl, keywords, openGraph, jsonLd, response headers.

Differs from WCC in two places: no fallback for canonicalUrl (it would just repeat redirectedUrl), and one broken JSON-LD block doesn't throw away the rest of the page's.

Closes #113

Comment thread src/request-handler.ts
addTimeMeasureEvent(request.userData, 'playwright-parse-with-cheerio');

const headers = response?.headers instanceof Function ? response.headers() : response?.headers;
const headers = getPlaywrightResponseHeaders(response);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring

@nikitachapovskii-dev
nikitachapovskii-dev merged commit d8f3acc into master Aug 4, 2026
2 checks passed
@nikitachapovskii-dev
nikitachapovskii-dev deleted the chore/enrich-metadata branch August 4, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enrich metadata

3 participants