LOR.get_page_urls

LOR.get_page_urls(update=False, verbose=False)[source]

Gets URLs to PRIDE/LOR codes with different prefixes.

Parameters:
  • update (bool) – Whether to check for updates to the package data; defaults to False.

  • verbose (bool | int) – Whether to print relevant information to the console; defaults to False.

Returns:

A list of URLs of the web pages hosting LOR codes for each prefix.

Return type:

list | None

Examples:

>>> from pyrcs.line_data import LOR  # from pyrcs import LOR
>>> lor = LOR()
>>> lor_urls = lor.get_page_urls()
>>> type(lor_urls)
list
>>> lor_urls[0]
'http://www.railwaycodes.org.uk/pride/pridecy.shtm'