This is a short Python script in Jupyter Notebook and raw python formats.
It was written to test a hypothetical means of obtaining address details for published (SC)ottish (UPR)Ns for small lists of UPRNS.
It uses some standard libraries to scrape that data from the One Scotland Gazetteer.
It is shared for educational use only. No checks have been made on the terms of use of that site for the appropriateness using this test script. Anyone using the script does so accepting libability for their own use of it.
The script uses the Sleep() function to introduce a pause of several seconds between requests so as not to adversely affect the ODG web server.
The script could be made much better - and pull requests are welcomed.