• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 580
  • Last Modified:

Scrape Google Produts Suggestion Keywords

i want grab a keywords from google products page

http://www.google.com/prdhp

look image attachment. google suggestion
0
ansori
Asked:
ansori
  • 3
  • 3
1 Solution
 
Wayne Taylor (webtubbs)Commented:
What keywords? The "items recently found"? If so, this function will return a List(Of String) containing the items.

    Public Function GetGoogleProductItems()
        Dim ItemList As New List(Of String)
        Using wc As New System.Net.WebClient
            Dim html As String = wc.DownloadString("http://www.google.com/prdhp")
            Dim patt As String = "href=""/products\?q=(.*?)&sampleq=1"
            Dim Items As System.Text.RegularExpressions.MatchCollection = System.Text.RegularExpressions.Regex.Matches(html, patt)
            For Each item As System.Text.RegularExpressions.Match In Items
                ItemList.Add(item.Groups(1).Value.Replace("+", " "))
            Next
        End Using
        Return ItemList
    End Function

Open in new window


Wayne
0
 
ansoriAuthor Commented:
its ajax
i think he open js function from clients1.google.com /////
but i dont have a clue
0
 
Wayne Taylor (webtubbs)Commented:
>>but i dont have a clue
Neither do I. I don't understand what you're talking about.

What exactly from the image you uploaded do you want to retrieve?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
ansoriAuthor Commented:
buckwheat pillow microwave
buckwheat pillow queen size
0
 
Wayne Taylor (webtubbs)Commented:
Nope, no idea how to get that, sorry.
0
 
ansoriAuthor Commented:
not completed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now