C
Chad Layton
I'm rather new to both web programming and ruby so forgive me if my
question is ill formed.
I'm trying to do some screen scraping on a website that requires a login
. What I would like to have happen is for the user to login to the
website normally, then run my script which uses the existing login
session to grab the page and do whatever to it.
To illustrate my problem: If I use
Net::HTTP.get_response(URI.parse("http://foo.bar/baz.php")).body, then
it serves up the index asking for a login. How do I get contents of
baz.php?
question is ill formed.
I'm trying to do some screen scraping on a website that requires a login
. What I would like to have happen is for the user to login to the
website normally, then run my script which uses the existing login
session to grab the page and do whatever to it.
To illustrate my problem: If I use
Net::HTTP.get_response(URI.parse("http://foo.bar/baz.php")).body, then
it serves up the index asking for a login. How do I get contents of
baz.php?