wnews library

Classes

NewsItem
This represents a single item of news as seen on Wikipedia's main page.

Functions

extractNews(String json) List<NewsItem>
Parses the JSON response from URLs such as https://api.wikimedia.org/feed/v1/wikipedia/en/featured/2023/10/30. and extracts news items.
getEndpointUri({String language = 'en'}) Uri
Returns the URI at which the Wikimedia API returns the current news, such as https://api.wikimedia.org/feed/v1/wikipedia/en/featured/2023/10/30.