VG and Aftenposten scrapers return no articles after site redesign #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both vg.no and aftenposten.no migrated to the same Schibsted frontend with build-hashed CSS-module class names. The homepage scrapers' selectors no longer match anything:
article.article-extractandh2.headline— both gone.article.teaser[data-pulse-url]anddata-pulse-teaser-title— the attributes were removed.Both scrapers hit their
no articles foundguard. Article-page content extraction (.article-body p/article p+ og: meta tags) is unaffected.Fix: replace both homepage parsers with a shared Schibsted parser keyed on stable hooks (
a[data-content-type="article"]for links,h2[aria-label]for titles), host-filtered per site. Refresh test fixtures.