SinclairSchneider commited on
Commit
c1a8d4b
·
verified ·
1 Parent(s): 9793468

Add detailed dataset card and the scraping pipeline used to build it

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -296,7 +296,8 @@ The crawler is a breadth-first whole-site crawler built on
296
  that start with `https://www.n-tv.de/` or with `/` (which are then made absolute) are added to the
297
  frontier. URLs containing `#` are dropped.
298
  4. **URL filtering.** Before fetching, a URL is skipped when it contains `/files/`, `/video/`,
299
- `.jpg`, `.pdf`, `.xml`, `.pptx`, `.shtml` or `.epub`, or when it has fewer than five path segments (which filters out section index pages).
 
300
  5. **Fetching.** Each URL gets up to 10 attempts with a 10 s timeout.
301
  6. **Extraction.** `get_content()` turns the HTML into a record (see below). Only pages with a
302
  non-empty `content` are written out, as `pages/<flattened-url>.json`.
@@ -349,8 +350,8 @@ Each article is stored as a JSON file of the shape
349
  1. `glob("pages/*.json")` collects every article file.
350
  2. The nested records are flattened into one `pandas.DataFrame` column per field.
351
  3. `df.drop_duplicates(subset=['title'])` removes duplicates — the same article is often reachable
352
- under several URLs (print/mobile variants, tracking parameters, section mirrors), and the
353
- headline is the most reliable identity key available.
354
  4. The frame is written to `ntv_de.json` and pushed with
355
  `datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/ntv_de")`.
356
 
 
296
  that start with `https://www.n-tv.de/` or with `/` (which are then made absolute) are added to the
297
  frontier. URLs containing `#` are dropped.
298
  4. **URL filtering.** Before fetching, a URL is skipped when it contains `/files/`, `/video/`,
299
+ `.jpg`, `.pdf`, `.xml`, `.pptx`, `.shtml` or `.epub`, or when it has fewer than five path
300
+ segments (which filters out section index pages).
301
  5. **Fetching.** Each URL gets up to 10 attempts with a 10 s timeout.
302
  6. **Extraction.** `get_content()` turns the HTML into a record (see below). Only pages with a
303
  non-empty `content` are written out, as `pages/<flattened-url>.json`.
 
350
  1. `glob("pages/*.json")` collects every article file.
351
  2. The nested records are flattened into one `pandas.DataFrame` column per field.
352
  3. `df.drop_duplicates(subset=['title'])` removes duplicates — the same article is often reachable
353
+ under several URLs (print/mobile variants, tracking parameters, section mirrors), and
354
+ the headline is the most reliable identity key available.
355
  4. The frame is written to `ntv_de.json` and pushed with
356
  `datasets.Dataset.from_pandas(df).push_to_hub("SinclairSchneider/ntv_de")`.
357