Skip to content

mattcave/rhra-db-scraper

Repository files navigation

INSTRUCTIONS

Setup

Copy these files into a directory on your computer

Install node from https://nodejs.org/en/download/

Run npm install

Process

  • Grab list of Homes from https://www.rhra.ca/wp-admin/admin-ajax.php?action=public_register&language=en and save it as list.json (or use node get-facility-list.js)
  • Delete any old files from the data directory
  • Run node download-pages.js (usually multiple times) to save a local copy of the pages
  • When you've got them all, run node create-Excel-file.js to extract the various fields and save to CSV
  • The file will be saved to out.csv

TODO

  • Grab the json file automatically
  • Warn if data dir is not empty
  • Error checking everywhere

About

RHRA Database Scraper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published