whoogle-search/app
Ben Busby afd01820bb
Collapse long result sections into details/summary elements
Sections such as "People also asked" and "related searches" typically
take up a lot of room on the results page, and don't always have the
most useful information. This checks for result elements with more than
7 child divs, extracts the section title, and wraps all elements in a
"details" element that can be expanded/collapsed by the user.

Note that this functionality existed previously (albeit not implemented
as well), but due to changes in how Google returns searches (switching
from using <h2> elements for section headers to <span> or <div>
elements), the approach to collapsing these sections needed to be
updated.
2021-06-23 18:59:57 -04:00
..
models Support basic localization (#325) 2021-05-24 17:03:02 -04:00
static Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00
templates Handle error when parsing image result url 2021-06-16 10:40:18 -04:00
utils Hotfix: remove site filter for maps links 2021-05-27 12:01:57 -04:00
__init__.py Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Collapse long result sections into details/summary elements 2021-06-23 18:59:57 -04:00
request.py Skip parsing user agent if absent from request 2021-06-16 10:37:33 -04:00
routes.py Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00