Update WebScape_TOOL.py
Browse files- WebScape_TOOL.py +3 -3
WebScape_TOOL.py
CHANGED
|
@@ -68,7 +68,7 @@ class WebSearchTools:
|
|
| 68 |
def technicalsignals_search(query: str) -> str:
|
| 69 |
"""
|
| 70 |
Performs an internet search and returns the results.
|
| 71 |
-
**** Note: only pass the cryptocurrency name or symbol into the search query****
|
| 72 |
Parameters:
|
| 73 |
query (str): The search query.
|
| 74 |
|
|
@@ -77,7 +77,7 @@ class WebSearchTools:
|
|
| 77 |
"""
|
| 78 |
# Assuming `ddgs` is initialized and ready to use here, with a context manager support
|
| 79 |
with DDGS() as ddgs:
|
| 80 |
-
results = [r for r in ddgs.text(f"site:centralcharts.com
|
| 81 |
return results if results else "No results found."
|
| 82 |
|
| 83 |
|
|
@@ -94,6 +94,6 @@ class WebSearchTools:
|
|
| 94 |
"""
|
| 95 |
# Assuming `ddgs` is initialized and ready to use here, with a context manager support
|
| 96 |
with DDGS() as ddgs:
|
| 97 |
-
results = [r for r in ddgs.text(f"site:coincodex.com prediction {query}", max_results=
|
| 98 |
return results if results else "No results found."
|
| 99 |
|
|
|
|
| 68 |
def technicalsignals_search(query: str) -> str:
|
| 69 |
"""
|
| 70 |
Performs an internet search and returns the results.
|
| 71 |
+
**** Note: only pass the cryptocurrency name or symbol into the search query like BTC or LINK - DO NOT PASS ANY OTHER QUERY****
|
| 72 |
Parameters:
|
| 73 |
query (str): The search query.
|
| 74 |
|
|
|
|
| 77 |
"""
|
| 78 |
# Assuming `ddgs` is initialized and ready to use here, with a context manager support
|
| 79 |
with DDGS() as ddgs:
|
| 80 |
+
results = [r for r in ddgs.text(f"site:centralcharts.com signals {query}", max_results=10)]
|
| 81 |
return results if results else "No results found."
|
| 82 |
|
| 83 |
|
|
|
|
| 94 |
"""
|
| 95 |
# Assuming `ddgs` is initialized and ready to use here, with a context manager support
|
| 96 |
with DDGS() as ddgs:
|
| 97 |
+
results = [r for r in ddgs.text(f"site:coincodex.com prediction {query}", max_results=4)]
|
| 98 |
return results if results else "No results found."
|
| 99 |
|