scrape-gyldendal

Scrape Gyldendal mock tests and convert them into DanskPrep JSON seed data.

3|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/YanCheng-go/danskprep --skill scrape-gyldendal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scrape-gyldendal
Source: https://github.com/YanCheng-go/danskprep/tree/main/.claude/skills/scrape-gyldendal
Command: npx skills add https://github.com/YanCheng-go/danskprep --skill scrape-gyldendal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Scrape Gyldendal module mock tests from modultest.ibog.gyldendal.dk (Gyldendal's official Nuxt.js/Typo3 SPA) and convert them into DanskPrep seed data.

Core Features & Use Cases

  • Automates extraction of module tests from Gyldendal's API and H5P content to seed data.
  • Maps Gyldendal/H5P exercise types to DanskPrep seed formats for PD3 Module 2 and future modules.
  • Use Case: Extend the exercise bank with publisher-quality questions for exam preparation.

Quick Start

Run the scraper to fetch Gyldendal module tests and output seed data to src/data/seed/exercises-pd3m2.json.

Frequently Asked Questions about scrape-gyldendal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape Gyldendal mock tests and convert them into seed data?

You can scrape Gyldendal mock tests by running a Playwright-based script that intercepts API responses and falls back to DOM extraction to map H5P exercises into a JSON seed file. This converts publisher test content into structured data.

Does the Gyldendal scraper support extracting H5P interactive content?

Yes, H5P interactive content is supported during the Gyldendal scraping process. The automation script maps H5P exercise types directly to target seed formats, ensuring interactive test questions are accurately extracted into the JSON output.

How do I automate test question extraction from a Nuxt.js SPA like Gyldendal?

Automating test extraction from a Nuxt.js SPA involves using Playwright for browser automation and API interception. The script captures network traffic for API-first data paths and uses DOM parsing as a fallback to extract embedded test content.

Can I use the scraped seed data to expand exercise banks for PD3 Module 2?

Yes, the scraped output is specifically formatted as seed data to expand exercise banks for PD3 Module 2. The JSON file maps publisher-quality questions to DanskPrep types, enriching the dataset for exam preparation and future modules.

What is the best way to map H5P exercise types to custom data formats?

The best way to map H5P exercise types to custom data formats is through an automated scraping pipeline that intercepts API payloads and parses DOM structures. This maps Gyldendal question types into structured JSON seed data for downstream applications.

Are there limitations when scraping dynamic SPA content from Gyldendal?

Scraping dynamic SPA content from Gyldendal requires handling JavaScript-rendered pages and API-driven data. The script mitigates this by using API interception first and a DOM fallback, but complex interactive H5P elements may require specific mapping logic.