AyOK-Code / oscn_scraper

MIT License
1 stars 1 forks source link

Attorney Address not parsing from the case #10

Open holdenmitchell opened 2 years ago

holdenmitchell commented 2 years ago

Description

The attorney address appears to be blank whenever you scrape a case

Recreating the Issue

Scrape a single case

html = OscnScraper::Requestor::Case.new({county: 'Oklahoma', number: 'CF-2018-1016'}).fetch_c
ase_by_number
parsed = Nokogiri::HTML(html.body)
OscnScraper::Parsers::BaseParser.new(parsed).build_object

The output of the attorney data has empty strings for the address fields:

:attorneys=>
  [{:name=>"ADLER, S THOMAS II",
    :address=>"",
    :bar_number=>"19997",
    :represented_parties=>["PIT,   ANTHONY  LEE"]},
   {:name=>"GOOD, DAN", :address=>"", 
    :bar_number=>"31067", 
    :represented_parties=>["PIT,   ANTHONY  LEE"]
}],
AspiringDev51 commented 2 years ago

https://github.com/AyOK-Code/oscn_scraper/pull/20