If WHOOGLE_MINIMAL is activated, collapse all non-link results

This commit is contained in:
DUO Labs 2021-10-24 16:37:27 -04:00 committed by GitHub
parent 19e89de5d9
commit 02c1aa2917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,10 @@ class Filter:
# Loop through results and check for the number of child divs in each
for result in self.main_divs:
result_children = pull_child_divs(result)
if WHOOGLE_MINIMAL=="1":
if len(result_children) in (1,3):
continue
else:
if len(result_children) < self.RESULT_CHILD_LIMIT:
continue