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. |
||
|---|---|---|
| .. | ||
| models | ||
| static | ||
| templates | ||
| utils | ||
| __init__.py | ||
| __main__.py | ||
| filter.py | ||
| request.py | ||
| routes.py | ||