Add detailed dataset card and the scraping pipeline used to build it
Browse files295 unmodified lines29629729829930030130246 unmodified lines349350351352353354355356295 unmodified linesthat start with `https://www.n-tv.de/` or with `/` (which are then made absolute) are added to thefrontier. URLs containing `#` are dropped.4. **URL filtering.** Before fetching, a URL is skipped when it contains `/files/`, `/video/`,`.jpg`, `.pdf`, `.xml`, `.pptx`, `.shtml` or `.epub`, or when it has fewer than five path segments (which filters out section index pages).5. **Fetching.** Each URL gets up to 10 attempts with a 10 s timeout.6. **Extraction.** `get_content()` turns the HTML into a record (see below). Only pages with anon-empty `content` are written out, as `pages/<flattened-url>.json`.46 unmodified lines1. `glob("pages/*.json")` collects every article file.2. The nested records are flattened into one `pandas.DataFrame` column per field.3. `df.drop_duplicates(subset=['title'])` removes duplicates — the same article is often reachableunder several URLs (print/mobile variants, tracking parameters, section mirrors), and theheadline is the most reliable identity key available.4. The frame is written to `ntv_de.json` and pushed with`datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/ntv_de")`.295 unmodified lines29629729829930030130230346 unmodified lines350351352353354355356357295 unmodified linesthat start with `https://www.n-tv.de/` or with `/` (which are then made absolute) are added to thefrontier. URLs containing `#` are dropped.4. **URL filtering.** Before fetching, a URL is skipped when it contains `/files/`, `/video/`,`.jpg`, `.pdf`, `.xml`, `.pptx`, `.shtml` or `.epub`, or when it has fewer than five pathsegments (which filters out section index pages).5. **Fetching.** Each URL gets up to 10 attempts with a 10 s timeout.6. **Extraction.** `get_content()` turns the HTML into a record (see below). Only pages with anon-empty `content` are written out, as `pages/<flattened-url>.json`.46 unmodified lines1. `glob("pages/*.json")` collects every article file.2. The nested records are flattened into one `pandas.DataFrame` column per field.3. `df.drop_duplicates(subset=['title'])` removes duplicates — the same article is often reachableunder several URLs (print/mobile variants, tracking parameters, section mirrors), andthe headline is the most reliable identity key available.4. The frame is written to `ntv_de.json` and pushed with`datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/ntv_de")`.
README.md+4-3