Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.21 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.21 KB

Elixir CI

Oregon Revised Statutes Crawler

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

To run the spider

iex -S mix run -e "Crawly.Engine.start_spider(OrsSpider)"

To auto-run tests

fswatch lib test | mix test --listen-on-stdin

Clear before each run

fswatch lib test | xargs -I {} sh -c 'clear && mix test'