🔎 feat: search fix web search

This commit is contained in:
Florian Hönicke
2023-05-18 20:08:41 +02:00
parent 3101bd1978
commit e1f0205663
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def google_search(search_term, search_type, top_n):
'q': search_term,
'key': google_api_key,
'cx': google_cse_id,
'searchType': search_type,
**({'searchType': search_type} if search_type == 'image' else {}),
'num': top_n
}
response = requests.get(url, params=params)