I'm trying to get arrest data from the police blotter of the Palm Beach County Sheriff's Office.
I've limited my search to the city of West Palm Beach, going back as far as the data goes (Oct. 31, 1974).
I'm using FireFox.
When I get the results, I open up FireBug, check the HTML tab, and I can see the info I want from the page (i.e., arrested person's name, arrest address, charges, etc.).
I checked the Net>>XHR>>Post tab to find the POST request parameters, and put that into my code, yet the HTML it returns does not include the vital info I'm looking for.
Does anyone know if I'm just doing it wrong, or if the site is unscrapeable? Here's my code:
require 'rubygems'
require 'nokogiri'
require 'restclient'
require 'open-uri'
blotterURL = 'http://www.pbso.org/index.cfm?fa=blotter'
city = "west palm beach"
fromrec = 1
if page = RestClient.post(blotterURL, {'city_name'=>city, 'fromrec'=>fromrec})
puts Nokogiri::HTML(page)
end