Solved

Scrape Google Produts Suggestion Keywords

Posted on 2010-11-13
6
571 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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