mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
removed junk if
This commit is contained in:
parent
db6d988b2d
commit
b53bfefeea
@ -33,6 +33,5 @@ def search_word_on_web(word: str, web_browser: str = "Google", max_results: int
|
||||
links = re.findall(r'https?://\S+', res)
|
||||
|
||||
return links
|
||||
else:
|
||||
raise ValueError(
|
||||
"The only web browsers avaiable are DuckDuckGo or Google")
|
||||
raise ValueError(
|
||||
"The only web browsers avaiable are DuckDuckGo or Google")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user