CSS Scraper improvements #408
bartveneman
started this conversation in
The CSS Selection
Replies: 2 comments
|
Use URI's from the Chrome UX report, as the Web Almanac does as well: https://almanac.httparchive.org/en/2025/methodology#chrome-ux-report |
0 replies
|
Need to decide if we want to crawl secondary pages as well, like Google does. This was also mentioned in the Igalia podcast episode. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Planned changes for 2027
@projectwallace/css-analyzerv7.6.3Headless scraping, no hard Playwright dependency
Build the scraper as a library that accepts a browser context as input,
rather than depending directly on Playwright. That way it can run against a
hosted headless-browser vendor (e.g. Browserless) instead of only running
Playwright in-process.
Why go headless at all:
this already exists in-house.
adoptedStyleSheetsaccess — constructed stylesheetsadopted into shadow roots via JS, invisible to static-HTML scraping.
Scraper pipeline (proposed, multi-stage)
robots.txtand check robots meta tags to confirmscraping is actually allowed. Sites that opt out via robots directives
are skipped entirely.
regardless of origin — linked stylesheets,
<style>tags, inlinestyle=attributes,adoptedStyleSheets, and@import-ed stylesheets.Wappalyzer) alongside the CSS collection.
found tagged by its origin type (
link/adopted-stylesheet/style-tag/inline).Also capture inline styles
Not just linked/embedded stylesheets —
style="..."attributes too. Stillneed to decide how inline styles are represented in the analysis: merged
into the main CSS corpus, or tracked separately, since they behave
differently (always maximum specificity, no selectors).
Running Playwright at scale
This is probably going to run on my personal laptop for a couple of weeks, but let's try to make it agnostic so that people can run it in GitHub actions using a service like browserless or whatever .
All reactions