open specific url results in next tab

MikeSpike 21 Reputation points
2022-09-04T16:27:09.173+00:00

Hi All,

Is it possible to open pages based on the search results in google? For example i search "Adidas", then i need the url results to be open in the next tabs along with search result. the url we need to open in other tabs samples are: instagram, linkedin, twitter, website of adidas. The search results will just limit up to page 2 of the page results.

Thanks,
Mike

0 comments No comments
{count} votes

Accepted answer
  1. XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
    2022-09-05T09:40:16.43+00:00

    Hi @MikeSpike ,

    Based on your description, I think what you want to implement is something like web page automation via some code, right? If this is the case, I have an idea, you can simply refer to it:

    1. Get process of browser using System.Diagnostics and then get the handler using System.Windows.Automation API.
    2. Created a new tab with Ctrl + T command in browser with Sendkeys() function.
    3. Focus in addressbar with Ctrl + L command and type the url https://www.google.com/search?q=adidas&start=10 using Sendkeys() function as well.
    4. Enter and then you can get the page results you need.

    But if you want to open these ten result pages shows in searched page, then I suggest you to use the Google Search API to get the list of pages you need, and then use the method I mentioned above to open these pages.

    In addition, I'm not sure what programming language you're using, VB or C#? If possible, could you describe your needs more clearly? Thank you for your understanding.

    Best regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful