Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1122,7 +1122,7 @@ async def validate_links_with_content(urls, query):
|
|
| 1122 |
return results
|
| 1123 |
|
| 1124 |
# Function to perform an advanced Google search using SERP API
|
| 1125 |
-
def
|
| 1126 |
try:
|
| 1127 |
# Configure SERP API client
|
| 1128 |
search_client = Client(api_key=serper_api_key)
|
|
|
|
| 1122 |
return results
|
| 1123 |
|
| 1124 |
# Function to perform an advanced Google search using SERP API
|
| 1125 |
+
def google_search(query, site=None, exclude_terms=None, freshness="last_month", gl=None, hl=None):
|
| 1126 |
try:
|
| 1127 |
# Configure SERP API client
|
| 1128 |
search_client = Client(api_key=serper_api_key)
|