# A question about rio and frames

**URL:** <https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851>\
**Category:** Ruby\
**Created:** [August 21, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851 "2006-08-21T21:48:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 21, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851/1 "2006-08-21T21:48:22Z")

</div>

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](http://www.math-jobs.com)’) \> rio(‘C:/math-jobs.html’)

# changing the last line above to this one doesn’t help …

# rio(‘[Mathematics, Statistics & Data Science Jobs worldwide | Math-Jobs.com](http://www.math-jobs.com/com/center)’) \> rio(‘C:/math-jobs.html’)

On the website ‘[http://www.math-jobs.com](http://www.math-jobs.com)’, there are a lot of links -  
how  
could  
these be retrieved ?

Thank you for your help,

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 21, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851/2 "2006-08-21T22:43:08Z")

</div>

unknown wrote:

> require ‘rubygems’  
> require ‘rio’
> 
> # open an URI and copy the content into a file
> 
> rio(‘[http://www.math-jobs.com](http://www.math-jobs.com)’) \> rio(‘C:/math-jobs.html’)
> 
> # changing the last line above to this one doesn’t help …
> 
> # rio(‘[Mathematics, Statistics & Data Science Jobs worldwide | Math-Jobs.com](http://www.math-jobs.com/com/center)’) \> rio(‘C:/math-jobs.html’)

rio(‘[Mathematics, Statistics & Data Science Jobs worldwide | Math-Jobs.com](http://www.math-jobs.com/com/center.html)’) \> rio(‘test.html’)

This worked for me. Kubuntu, Ruby 1.8.4.
