get_site_map¶
- pyrcs.parser.get_site_map(update=False, confirmation_required=True, verbose=False)[source]¶
Gets the site map.
- Parameters:
update (bool) – Whether to check for updates to the package data; defaults to
False
.confirmation_required (bool) – Whether user confirmation is required before proceeding; defaults to
True
.verbose (bool | int) – Whether to print relevant information to the console; defaults to
False
.
- Returns:
An ordered dictionary containing the data of site map.
- Return type:
collections.OrderedDict | None
Examples:
>>> from pyrcs.parser import get_site_map >>> site_map_dat = get_site_map() >>> type(site_map_dat) collections.OrderedDict >>> list(site_map_dat.keys()) ['Home', 'Line data', 'Other assets', '"Legal/financial" lists', 'Miscellaneous'] >>> site_map_dat['Home'] {'index.shtml': 'http://www.railwaycodes.org.uk/index.shtml'}