#!/usr/bin/env python3 """ Simple MediaWiki content downloader. Works with any MediaWiki-based wiki (Bulbapedia, Fandom wikis, etc.) by changing BASE_URL and API_ENDPOINT. """ import json import re import requests import argparse from pathlib import Path # Pokemon BASE_URL = "https://bulbapedia.bulbagarden.net" API_ENDPOINT = f"{BASE_URL}/w/api.php" # Dragonball # BASE_URL = "https://dragonball.fandom.com" # ← votre wiki # API_ENDPOINT = f"{BASE_URL}/api.php" # ← adapter le chemin si nécessaire def _strip_html(html: str) -> str: """Minimal HTML tag removal to get readable plain text from parsed output.""" # Remove