Request UK version of Google

Closes: #2
This commit is contained in:
Edward Betts 2023-11-25 16:04:35 +00:00
parent 991e4e939a
commit 1a5ed90fc1

View file

@ -81,7 +81,8 @@ class Index:
@property @property
def search_url(self) -> str: def search_url(self) -> str:
"""Search URL.""" """Search URL."""
return "https://www.google.com/search?q=" + urllib.parse.quote_plus(self.name) q = urllib.parse.quote_plus(self.name)
return f"https://www.google.com/search?q={q}&gl=uk"
def run(self, playwright: Playwright) -> None: def run(self, playwright: Playwright) -> None:
"""Run playwright.""" """Run playwright."""