Spaces:
Sleeping
Sleeping
Update web_scrape_and_pdf_loader.py
Browse files
web_scrape_and_pdf_loader.py
CHANGED
@@ -45,7 +45,7 @@ def duckduckgo_scrape(country, search_term, n_search_results):
|
|
45 |
all_links = []
|
46 |
|
47 |
with DDGS() as ddgs:
|
48 |
-
results = ddgs.text(
|
49 |
for result in results:
|
50 |
result['country'] = country
|
51 |
all_links.append(result)
|
|
|
45 |
all_links = []
|
46 |
|
47 |
with DDGS() as ddgs:
|
48 |
+
results = ddgs.text(search_term, max_results=n_search_results)
|
49 |
for result in results:
|
50 |
result['country'] = country
|
51 |
all_links.append(result)
|