LOR.get_page_urls

LOR.get_page_urls(update=False, dump_dir=None, verbose=False, **kwargs)[source]

Gets a list of URLs to PRIDE/LOR codes web pages.

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

  • dump_dir (str | None) – The path to a directory where the data file will be saved; defaults to None.

  • 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'