datopy.etl.retrieve_wiki_topics#
- retrieve_wiki_topics( ) list[str][source]#
Compile a list of related topics by scraping a Wikipedia page.
- Parameters:
listing_page (str) – The title of a Wikipedia article containing topics to be retrieved.
verbose (bool, default=True) – Option to enable/disable printouts.
- Returns:
A list of topics (by article name) extracted from the listing page.
- Return type:
Notes
Only hyperlinked topics (those with a Wikipedia page) are retrieved. Search Wikipedia’s catalogue of listing pages here: https://en.wikipedia.org/wiki/List_of_lists_of_lists