Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

How do I grab particular google results with vb.net? to listbox


  • Please log in to reply
2 replies to this topic

#1 ourguys

ourguys

    New Member

  • Members
  • Pip
  • 1 posts

Posted 17 December 2012 - 12:19 AM

I know howto make the vb program go to Google, even navigate around but I don't know how to manipulate the results. Basically I want the program to grab search results from Google and retrieve links specified by the user for instance if the user searches for Burgers and they only want results from Burgerking.com. Then only those would be output to the listbox. Does anyone know how to do this? here's my code so far: Public Class Form1 Dim look, retrieve As String Private Sub Search_Click(sender As Object, e As EventArgs) Handles Search.Click look = InputBox("What are you looking for?") look = look.Replace(" ", "+") Dim G1 As String = "http://www.google.co...ient=psy-ab&q=" WebBrowser1.Navigate(G1 + look) retrieve = InputBox("What links do you want to retrieve?") End Sub End Class

#2 Glen

Glen

    Member

  • Members
  • PipPip
  • 26 posts

Posted 17 December 2012 - 11:23 PM

Not vb specific, but you can restrict your google search to a particular site by including site:somesite.com in your search string.

Doing it via url, it would be something like this:
https://www.google.com/#hl=en&tbo=d&output=search&sclient=psy-ab&q=site:bk.com+burgers&oq=site:bk.com+burgers


#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 18 December 2012 - 01:23 AM

This is a Netduino forum not a .NET forum. This looks like windows code and you should take that to a generic .NET forum.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.