Add detailed dataset card and the scraping pipeline used to build it
Browse files285 unmodified lines28628728828929029129251 unmodified lines344345346347348349350351285 unmodified linesthat start with `https://www.rtl.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`, when it contains `/api/`, 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`.51 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 `rtl_de.json` and pushed with`datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/rtl_de")`.285 unmodified lines28628728828929029129229351 unmodified lines345346347348349350351352285 unmodified linesthat start with `https://www.rtl.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/`,`/api/`, `.jpg`, `.pdf`, `.xml`, `.pptx`, `.shtml` or `.epub`, or when it has fewer than fivepath 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`.51 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 `rtl_de.json` and pushed with`datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/rtl_de")`.
README.md+4-3