From a Ruby Script, How to automatically login to www.netflix.com

I have a subscription to www.netflix.com and I also have a library fo
dvd movies at home.
As a learing experience, I created a DB2 DB on my home PC.
I am in the process of building the ruby/db2 interface, but I came up
with another question about HTTP.

I would like, from a Ruby script, to logon to www.netflix.com
automatically and search for certain information about a particular
movie. Later on I will add that information to my database.
The information returned is:

movie_title genre rated actors/actresses director length etc

Any hint on how to:
1 - login to a website?
2 - Search the site?

Thank you

Victor