Description

Launch a web search in Google directly from Rhino.

Author and license

Script by MLAV.LAND, licensed under the GNU GPL 3 License.

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()