> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.stages.text.download.wikipedia.download

## Module Contents

### Classes

| Name                                                                                               | Description                                               |
| -------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [`WikipediaDownloader`](#nemo_curator-stages-text-download-wikipedia-download-WikipediaDownloader) | Downloads Wikipedia dump files (.bz2) from wikimedia.org. |

### API

```python
class nemo_curator.stages.text.download.wikipedia.download.WikipediaDownloader(
    download_dir: str,
    verbose: bool = False
)
```

**Bases:** `DocumentDownloader`

Downloads Wikipedia dump files (.bz2) from wikimedia.org.

```python
nemo_curator.stages.text.download.wikipedia.download.WikipediaDownloader._download_to_path(
    url: str,
    path: str
) -> tuple[bool, str | None]
```

Download a Wikipedia dump file to the specified path.

**Parameters:**

**`url`** `str`

URL to download

---

**`path`** `str`

Local path to save file

---

**Returns:** `bool`

Tuple of (success, error\_message). If success is True, error\_message is None.

```python
nemo_curator.stages.text.download.wikipedia.download.WikipediaDownloader._get_output_filename(
    url: str
) -> str
```

Generate output filename from URL.

```python
nemo_curator.stages.text.download.wikipedia.download.WikipediaDownloader.num_workers_per_node() -> int | None
```