mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
Fix: keep_blank_values = True
to handle blank q
input (#1052)
This commit is contained in:
parent
a40b98341b
commit
4a0089686e
@ -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…
x
Reference in New Issue
Block a user