Skip to content

Instantly share code, notes, and snippets.

@bycoffe
Created November 19, 2012 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bycoffe/4112332 to your computer and use it in GitHub Desktop.
Save bycoffe/4112332 to your computer and use it in GitHub Desktop.
require 'daybreak'
require 'fech'
db = Daybreak::DB.new 'filings.db'
Fech::Search.new(:date => Date.today).results.each do |result|
db[result.filing_id] = result.filing(:csv_parser => Fech::CsvDoctor).download.rows_like(//)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment