Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def scrape_site_content(query, num_sites=5):
|
|
128 |
|
129 |
try:
|
130 |
# Use a more direct search URL format
|
131 |
-
search_url = f"https://www.
|
132 |
search_response = requests.get(search_url, headers=headers, timeout=30)
|
133 |
search_response.raise_for_status()
|
134 |
|
|
|
128 |
|
129 |
try:
|
130 |
# Use a more direct search URL format
|
131 |
+
search_url = f"https://www.bing.com/search?q={urllib.parse.quote(query)}&num={num_sites}"
|
132 |
search_response = requests.get(search_url, headers=headers, timeout=30)
|
133 |
search_response.raise_for_status()
|
134 |
|