Solved

Scrape Google Produts Suggestion Keywords

Posted on 2010-11-13
6
568 Views
Last Modified: 2012-06-22
i want grab a keywords from google products page

http://www.google.com/prdhp

look image attachment. google suggestion
0
Comment
Question by:ansori
  • 3
  • 3
6 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 34129729
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
 

Author Comment

by:ansori
ID: 34129735
its ajax
i think he open js function from clients1.google.com /////
but i dont have a clue
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 34129743
>>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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:ansori
ID: 34129770
buckwheat pillow microwave
buckwheat pillow queen size
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 34129782
Nope, no idea how to get that, sorry.
0
 

Author Closing Comment

by:ansori
ID: 36135519
not completed
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now