Skip to content

Commit 7ba2f6a

Browse files
committed
chore: correct search engine name
1 parent 5c92186 commit 7ba2f6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scrapegraphai/utils/research_web.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def search_on_web(query: str, search_engine: str = "Google", max_results: int =
1111
1212
Args:
1313
query (str): The search query to find on the internet.
14-
search_engine (str, optional): Specifies the search engine to use, options include 'Google', 'DuckDuckGo', 'Bing', or 'SearcNGX'. Default is 'Google'.
14+
search_engine (str, optional): Specifies the search engine to use, options include 'Google', 'DuckDuckGo', 'Bing', or 'SearXNG'. Default is 'Google'.
1515
max_results (int, optional): The maximum number of search results to return.
16-
port (int, optional): The port number to use when searching with 'SearcNGX'. Default is 8080.
16+
port (int, optional): The port number to use when searching with 'SearXNG'. Default is 8080.
1717
1818
Returns:
1919
List[str]: A list of URLs as strings that are the search results.
@@ -53,7 +53,7 @@ def search_on_web(query: str, search_engine: str = "Google", max_results: int =
5353
search_results.append(link)
5454
return search_results
5555

56-
elif search_engine.lower() == "searcngx":
56+
elif search_engine.lower() == "searxng":
5757
url = f"http://localhost:{port}"
5858
params = {"q": query, "format": "json"}
5959

@@ -66,4 +66,4 @@ def search_on_web(query: str, search_engine: str = "Google", max_results: int =
6666
return limited_results
6767

6868
else:
69-
raise ValueError("The only search engines available are DuckDuckGo, Google, Bing, or SearcNGX")
69+
raise ValueError("The only search engines available are DuckDuckGo, Google, Bing, or SearXNG")

0 commit comments

Comments
 (0)