Downloads websites and outputs a table as a CSV.
npm install -g get-table-csv
get-table-csv <url> <selector>
Options:
-c
to require the rows to have the same number of columns as the first row. Helps strip out extra rows, e.g. footnotes at the end.-h
to replace the first row with custom column names
Download the Local Area Unemployment Statistics figures by MSA from the U.S. Bureau of Labor Statistics
get-table-csv https://www.bls.gov/web/metro/laummtrk.htm '#laummtrk' -c -h "MSA,UNEMPLOYMENT_RATE,UNEMPLOYMENT_RANK"