A question about rio and frames

#1

Dear all,

while trying to download some website with open-uri, I am only getting a
message that my browser doesn't support frames, and that I should download
some other website without frames, but if I download that one, nothing
different happens.
I am new to screen scraping, and I would definitely like to use plain Ruby
rather
than Rails to do this.

My code is below:

require 'rubygems'
require 'rio'
# open an URI and copy the content into a file
rio('http://www.math-jobs.com') > rio('C:/math-jobs.html')

# changing the last line above to this one doesn't help ...
# rio('http://www.math-jobs.com/com/center') > rio('C:/math-jobs.html')

On the website 'http://www.math-jobs.com', there are a lot of links - how
could
these be retrieved ?

Thank you for your help,

Best regards,

Axel

(William Crawford) #2

unknown wrote:

require 'rubygems'
require 'rio'
# open an URI and copy the content into a file
rio('http://www.math-jobs.com') > rio('C:/math-jobs.html')

# changing the last line above to this one doesn't help ...
# rio('http://www.math-jobs.com/com/center') > rio('C:/math-jobs.html')

rio('http://www.math-jobs.com/com/center.html') > rio('test.html')

This worked for me. Kubuntu, Ruby 1.8.4.

ยทยทยท

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