Description

Lancer une recherche sur Google directement depuis Rhino.

Le script suivant fonctionne sur :

  • Rhino pour Windows ;
  • Rhino pour macOS.

Script par MLAV.LAND, sous licence GNU GPL 3.

Code

import rhinoscriptsyntax as rs
import webbrowser
 
def search_on_google(query):
    search_url = "https://www.google.com/search?q=%s" % query
    webbrowser.open(search_url)
 
def main():
    search_query = rs.GetString("Search the web")
    if search_query:
        search_on_google(search_query)
 
if __name__ == "__main__":
    main()