Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Scrape Google Produts Suggestion Keywords

Posted on 2010-11-13
6
Medium Priority
?
575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

670 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