# To access a webpage multiple times

**URL:** <https://www.ruby-forum.com/t/to-access-a-webpage-multiple-times/190080>\
**Category:** Ruby\
**Created:** [June 13, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/to-access-a-webpage-multiple-times/190080 "2010-06-13T21:15:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeepcasp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@sandeepcasp](https://www.ruby-forum.com/u/sandeepcasp)\
**Post date:** [June 13, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/to-access-a-webpage-multiple-times/190080/1 "2010-06-13T21:15:08Z")

</div>

I have a website : where I have to input data into multiple text-bars  
multiple number of times and there is a submit data button which I use  
after the data have been given … After the submit button is clicked the  
webpage is directed to another page and I have to collect data from that  
page where there is a link for a ascii file that I have to download .

As I said this process have to be done multiple times :

The webpage is : [http://omniweb.gsfc.nasa.gov/vitmo/iri\_vitmo.html](http://omniweb.gsfc.nasa.gov/vitmo/iri_vitmo.html)

I have to access this webpage multiple times and collect the data that  
the webpage gives when the submit button is clicked … If a script in  
RUBY can do this ,… It will be great …

---

<div class="post-metadata">

**Author:** ![sandeepcasp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@sandeepcasp](https://www.ruby-forum.com/u/sandeepcasp)\
**Post date:** [June 13, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/to-access-a-webpage-multiple-times/190080/2 "2010-06-13T23:17:51Z")

</div>

> I have to access this webpage multiple times and collect the data that  
> the webpage gives when the submit button is clicked … If a script in  
> RUBY can do this ,… It will be great …

Have a look at the mechanize gem.
