Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Digger configuration for Diggernaut.com service
- # written using Excavator app
- # Explanation article: https://blog.diggernaut.com/extracting-data-from-el-paso-county-sheriff-blotter/
- do:
- - link_add: 'http://www.epcsheriffsoffice.com/blotter'
- - walk:
- to: links
- do:
- - find:
- path: 'tbody > tr'
- do:
- - object_new: incident
- - find:
- path: ' td:nth-child(1)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: call_number
- - find:
- path: ' td:nth-child(2) > .date-display-single:nth-child(1)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: date
- - find:
- path: div .date-display-single
- do:
- - parse
- - object_field_set:
- object: incident
- field: time
- - find:
- path: ' td:nth-child(3)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: address
- - find:
- path: ' td:nth-child(4)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: grid
- - find:
- path: ' td:nth-child(5)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: problem
- - find:
- path: ' td:nth-child(6)'
- do:
- - parse
- - object_field_set:
- object: incident
- field: disposition
- - object_save:
- name: incident
- - find:
- path: .pager-next a
- do:
- - parse:
- attr: href
- - link_add
Add Comment
Please, Sign In to add comment