OpenDataScotland / the_od_bods

Collating open data from across Scotland
MIT License
20 stars 18 forks source link

NLS scraper has inaccurate number of records calculation #259

Open JackGilmore opened 10 months ago

JackGilmore commented 10 months ago

Describe the bug The NLS scraper appears to incorrectly calculate the number of records field on opendata.scot based on the file contents description which just gives you the number of files in a zip. It also judges this based on the first file upload on a page and doesn't take into account multiple file uploads.

To Reproduce See fetch_num_recs() method in nls_scraper.py

Expected behavior Number of records should reflect the number of records in a dataset (e.g. number of rows in a CSV)

Screenshots image image

Hardware and software used N/A

Additional context This functionality was patched out in 59dca44 but the function still remains