I need help pulling URLs from google search results and I was told to use Nokogiri. I installed it and read the Nokogiri documents, but I have no idea where to start - it's all Greek to me.
I know that I am looking for the URL of each result, each of which exists between the <cite> . For now, all I could figure out how to do was print the search results, but I just donβt know how to get certain data from the file. Here is a tiny bit of code that I have:
serp = Nokogiri::HTML(open("http://www.google.com/search?num=100&q=stackoverflow"))
source share