Duckduckgo search update

This commit is contained in:
Luciano Gervasoni
2025-07-22 22:53:53 +02:00
parent b112da8bd0
commit 54e41139bb
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ logger = get_logger()
from furl import furl
from gnews import GNews
from duckduckgo_search import DDGS
from ddgs import DDGS
from GoogleNews import GoogleNews
from search_engines import Yahoo, Aol
@@ -113,7 +113,7 @@ class SearchDuckDuckGoGeneral(FetcherAbstract):
return "ddg-general {} results={}".format(self.region, self.max_results).replace("results=None", "").strip()
def _fetch_raw_urls(self, keyword_search):
try:
try:
news = DDGS().text(keyword_search, region=self.region, timelimit=self.period, max_results=self.max_results)
urls = [e.get("href") for e in news]
except Exception as e:

View File

@@ -13,7 +13,7 @@ lxml[html_clean]
googlenewsdecoder
gnews
GoogleNews
duckduckgo_search
ddgs
git+https://github.com/tasos-py/Search-Engines-Scraper.git
furl
langdetect