Skip to content

Commit

Permalink
Fix serp query params
Browse files Browse the repository at this point in the history
  • Loading branch information
pogzyb committed Sep 3, 2024
1 parent 390520d commit a5fae11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tourist/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.1.3"
4 changes: 2 additions & 2 deletions src/tourist/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def get_serp(
) -> list[dict]:
assert engine == EngineEnum.GOOGLE, f"{engine} is not supported."
page = self.get_page(
f"https://google.com/search?query={quote_plus(query)}", **httpx_kws
f"https://google.com/search?q={quote_plus(query)}", **httpx_kws
)
pages = []
if source_html := page.get("source_html"):
Expand Down Expand Up @@ -203,7 +203,7 @@ async def aget_serp(
) -> list[dict]:
assert engine == EngineEnum.GOOGLE, f"{engine} is not supported."
page = await self.aget_page(
f"https://google.com/search?query={quote_plus(query)}", **httpx_kws
f"https://google.com/search?q={quote_plus(query)}", **httpx_kws
)
pages = []
if source_html := page.get("source_html"):
Expand Down

0 comments on commit a5fae11

Please sign in to comment.