We can use the following ruby code snippets to get the title of given url:
require ‘open-uri’
f = open(“http://www.google.com”)
a = f.read
s = a.split(“title>”)
url = s[1]
results in:
We can use the following ruby code snippets to get the title of given url:
require ‘open-uri’
f = open(“http://www.google.com”)
a = f.read
s = a.split(“title>”)
url = s[1]
results in:
RSS feed for comments on this post. TrackBack URI
Hey gr888 work!!!!!!!
Comment by Radha — October 16, 2007 @ 1:46 pm