The raw data is published daily [by Public Health Scotland](https://www.opendata.nhs.scot/dataset/covid-19-in-scotland) in CSV format. Definitely read the note for each data source for caveats (e.g. neighbourhood case data is published on a 3 day lag)