diff options
| author | jazzzooo <38244149+jazzzooo@users.noreply.github.com> | 2023-09-21 06:30:00 -0700 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-09-21 16:55:39 +0200 |
| commit | 8bcca0e620a4879ed37d530419f2da1a709c706e (patch) | |
| tree | b456555a2a5bb33678029d793c802b52897da113 /searx/engines/brave.py | |
| parent | b729542a6681c16c906b4035ea836dec4ba3b91c (diff) | |
[fix] engine - brave don't show ads
Diffstat (limited to 'searx/engines/brave.py')
| -rw-r--r-- | searx/engines/brave.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py index 13e262fa3..c713ffe50 100644 --- a/searx/engines/brave.py +++ b/searx/engines/brave.py @@ -246,7 +246,7 @@ def _parse_search(resp): url = eval_xpath_getindex(result, './/a[contains(@class, "h")]/@href', 0, default=None) title_tag = eval_xpath_getindex(result, './/div[contains(@class, "title")]', 0, default=None) - if url is None or title_tag is None: + if url is None or title_tag is None or not urlparse(url).netloc: # partial url likely means it's an ad continue content_tag = eval_xpath_getindex(result, './/div[@class="snippet-description"]', 0, default='') |