Viaducts¶
-
class
viaduct.
Viaducts
(data_dir=None, update=False, verbose=True)[source]¶ A class for collecting railway viaducts.
- Parameters
data_dir (str, None) – name of data directory, defaults to
None
update (bool) – whether to check on update and proceed to update the package data, defaults to
False
verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to
True
Example:
>>> from pyrcs.other_assets import Viaducts >>> viaducts = Viaducts() >>> print(viaducts.Name) Railway viaducts >>> print(viaducts.SourceURL) http://www.railwaycodes.org.uk/viaducts/viaducts0.shtm
Methods
collect_viaduct_codes_by_page
(page_no[, …])Collect data of railway viaducts for a given page number from source web page.
fetch_viaduct_codes
([update, pickle_it, …])Fetch data of railway viaducts from local backup.