betty.wikipedia package

Submodules

Module contents

Fetch information from Wikipedia.

final class betty.wikipedia.Image[source]

Bases: object

An image from Wikimedia Commons.

__init__(path: Path, media_type: MediaType, title: str, wikimedia_commons_url: str, name: str) None
media_type: MediaType
name: str
path: Path
title: str
wikimedia_commons_url: str
exception betty.wikipedia.NotAPageError[source]

Bases: ValueError

Raised when a URL does not point to a Wikipedia page.

final class betty.wikipedia.Summary[source]

Bases: object

A Wikipedia page summary.

__init__(locale: str, name: str, title: str, content: str) None
content: str
locale: str
name: str
title: str
property url: str

The URL to the web page.