This class scraps the meta data from ONS website
There are 2 kinds of meta data; Timeseries
and Dataset
SelectorGadget (from selectorgadget.com) was use to find the required selectors (base_css
)
The ONS site is new and bound to undergo changes so should watch out for changes in base_murl and base_css
The meta information are stored in 2 tables in sqlite database ons_timeseries
and ons_datasets
.
ons_timeseries
= has 3 colums (code
, caption
, url
)
The codes in code
in code are unique and the the url
points to csv files containing the actual time
series data.
ons_datasets
has an additional column name url_csv
. In this dataset it is rather the url_csv
instead of url
which points to csv file containing the actual data.
1 |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.