Parameters ---------- force_refresh: bool If True, ignore the cached file and scrape again.
def _save_cache(titles: List[str]) -> None: """Persist titles to the JSON cache.""" CACHE_FILE.write_text(json.dumps(titles, ensure_ascii=False, indent=2), encoding="utf-8")
def _extract_titles(html: str) -> Set[str]: """ Parse one catalogue page and pull out series names.
pip install requests beautifulsoup4 lxml #!/usr/bin/env python3 """ Ullu – fetch all series titles.