mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Fix: keep_blank_values = True to handle blank q input (#1052)
This commit is contained in:
parent
a40b98341b
commit
4a0089686e
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ def extract_q(q_str: str, href: str) -> str:
|
|||
Returns:
|
||||
str: The 'q' element of the link, or an empty string
|
||||
"""
|
||||
return parse_qs(q_str)['q'][0] if ('&q=' in href or '?q=' in href) else ''
|
||||
return parse_qs(q_str, keep_blank_values=True)['q'][0] if ('&q=' in href or '?q=' in href) else ''
|
||||
|
||||
|
||||
def build_map_url(href: str) -> str:
|
||||
|
|
|
|||
Loading…
Reference in a new issue