How to get the table?

please input in firefox,you can get the attachmeng
http://www.sec.gov/cgi-bin/viewer?action=view&cik=804328&accession_number=0000950123-10-066837

i write the code:
require ‘rubygems’
require ‘open-uri’
web=‘http://www.sec.gov/cgi-bin/viewer?action=view&cik=804328&accession_number=0000950123-10-066837
open(’/tmp/file’,‘w’){|wfile|
open(web){|webfile| wfile.puts webfile.read}}

what i get is not the attachment,can i write a program to get the
contents of the attachment?
any advice appriciated.

is there ruby edgar api to use?
how to write a ruby edgar api?

Have a look at the ‘mechanize’ and ‘nokogiri’ gems, if you want to
scrape the HTML.

Otherwise, see if the data is provided in an alternate form more
suitable for machine reading, such as a SOAP API, and then use the
appropriate client side (e.g. ‘soap4r’)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs