Using the Crawly framework to parse the Oregon Revised Statutes ("ORS") into well formed JSON.
The output contains one line per statute object:
{"number":"1","name":"Courts, Oregon Rules of Civil Procedure","kind":"volume","chapter_range":["1","55"]}
{"number":"2","name":"Business Organizations, Commercial Code","kind":"volume","chapter_range":["56","88"]}
{"number":"3","name":"Landlord-Tenant, Domestic Relations, Probate","kind":"volume","chapter_range":["90","130"]}
etc.
We've made the data from the last run available here: https://github.com/public-law/datasets/blob/master/UnitedStates/Oregon
iex -S mix run -e "Crawly.Engine.start_spider(OrsSpider)"
fswatch lib test | mix test --listen-on-stdin
fswatch lib test | xargs -I {} sh -c 'clear && mix test'