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.

Attachments:
http://www.ruby-forum.com/attachment/4984/sec.jpg

···

--
Posted via http://www.ruby-forum.com/.

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

···

--
Posted via http://www.ruby-forum.com/.

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')

···

--
Posted via http://www.ruby-forum.com/.