I’m trying to grab some info off www.yellowbook.com for a specific city.
While testing a simple program to just grab the index page i couldnt
manage to get it working. Here’s what i have so far.
http = Net::HTTP.new(‘www.yellowbook.com’, 80)
res = http.send_request(‘GET’, ‘/’)
I get a object moved page all the time. I tested it with my browser
and it works perfectly. Could anyone kindly point what im doing wrong
here? Perhaps this method is not appropriate for this task…