Python webbrowser search with default search engine

29 Views Asked by At

Trying to determine how I would use pythons webbrowser library to search a string on the USERS set search engine.

My current line is

wb.open_new(f"https://www.google.com/search?q={string}")

However that only searches the string in google.

If you try just entering the string. The browser is trying to resolve the string. Not searching in the default search engine.

0

There are 0 best solutions below