LOR.get_page_urls

LOR.get_page_urls(update=False, verbose=False)

Get URLs to PRIDE/LOR codes with different prefixes.

Parameters
  • update (bool) – whether to do an update check (for the package data), defaults to False

  • verbose (bool or int) – whether to print relevant information in console, defaults to True

Returns

a list of URLs of web pages hosting LOR codes for each prefix

Return type

list or 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'