• 0

Query Google with VB.NET


Question

Forgive my ignorance however I thought this is the best place to ask, I have been out of the programming game for a while now. My background is .NET (VB). What is the correct and up to date method that would allow me to query Google and extract this information? I did use a method before a few years back but access to this is stopped.

 

Thanks

Link to comment
https://www.neowin.net/forum/topic/1202051-query-google-with-vbnet/
Share on other sites

11 answers to this question

Recommended Posts

  • 0

This would be the api to use:

 

https://developers.google.com/custom-search/json-api/v1/overview

 

However, you can only do 100 queries a day.

 

Another way would be to just query the website with say WebClient and parse the html for the results. But that is very dirty and I don't recommend it, certainly not if you are planning on distributing your software

  • 0

You could use HttpWebRequest to perform a search in Google and parse the response using an HTML parser or regular expressions, but do so knowing it will almost certainly break in the future.

  • 0
  On 23/02/2014 at 21:52, ChuckFinley said:

Yeah thats how I would have done it but parsing the HTML would be a dirty way to do it. I dont plan on putting my code into production at all its merely for self interest and curiosity and to stop my mind going stale.

Well, the link I gave you contains all the information, if you want to test it:

 

https://developers.google.com/apis-explorer/#p/customsearch/v1/search.cse.list

 

The easiest way to use it from vb.net would be using WebClient and parsing the result with the newtonsoft json library :)

  • 0
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Copilot in Excel just got a major upgrade by Usama Jawad It's no secret that Microsoft is trying to get as many people to use Copilot as possible. This is being done through various means, including integration with OneNote, Defender, Windows, and more. Microsoft Excel is the most popular spreadsheet software out there, so it makes sense that the Redmond tech firm would integrate and build upon the capabilities of Copilot in this tool too. Now, the company has implemented a major upgrade in this integration. In a blog post, Microsoft has made Copilot smarter in terms of context awareness in Excel. This makes the AI assistant more useful when asking questions about your data in nautral language queries. Previously, Copilot would only make inferences based on the cell that you have selected, and it typically worked quite well in this scenario. However, Microsoft has realized that workbooks and sheets have become more complex, which means that Copilot needs to be smarter too. This means that you no longer need to select relevant data when asking queries about it, you can simply ask questions such as "Show me insights about the data I was just analyzing" and "Sort the table in the top-right", and Copilot should just work. Microsoft says that this major upgrade in Copilot is due to combining cell signals with chat history in order to make inferences. It also supports data ranges, which means that it can serve as the foundation for even broader context in future updates. In order to get customers to trust the inferences that Copilot is making, Microsoft will highlight the data that the AI assistant is using. This enables customers to further refine the dataset that Copilot is using so that they can get the most accurate responses. Smart context awareness is available on the web and the following versions of desktop: Windows: Version 2505 (Build 18623.20058) Mac: Version 16.95 (Build 2506.3090) Meanwhile, the visual highlighting feature is also available on the web and the desktop versions mentioned below: Windows: Version 2505 (Build 18705.20000) Mac: Version 16.96 (Build 2506.4070) Microsoft has requested customers to provide feedback through the thumbs up/down icons present at the bottom of the Copilot response cards.
    • We should probably just focus on how nice it is that finally another company is taking reusable rockets seriously. I can't believe there are so few players and many rockets in service today are still completely expendable. Hopefully Honda can scale up theirs and add some badly needed competition. I want to see planes become irrelevant for global travel and we use rockets instead.
    • Yea. It's obviously being deprecated, in case no one noticed or forgot all the announcements and changes. Not such a big deal.
    • The best thing would be to just allow more options to let users pick the layout they like, it doesn't matter at this point really and it's not that hard to do as evidenced but all the 3rd party menus/tools that let you change it in lots of different ways. If you give the users more options they'll be happy, take them away and you have a problem.
  • Recent Achievements

    • Week One Done
      slackerzz earned a badge
      Week One Done
    • Week One Done
      vivetool earned a badge
      Week One Done
    • Reacting Well
      pnajbar earned a badge
      Reacting Well
    • Week One Done
      TBithoney earned a badge
      Week One Done
    • First Post
      xuxlix earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      684
    2. 2
      ATLien_0
      285
    3. 3
      Michael Scrip
      225
    4. 4
      +FloatingFatMan
      197
    5. 5
      Steven P.
      136
  • Tell a friend

    Love Neowin? Tell a friend!