[GH-ISSUE #634] [BUG] WHOOGLE_MINIMAL removes search results #401

Closed
opened 2026-02-25 20:35:40 +03:00 by kerem · 19 comments
Owner

Originally created by @DUOLabs333 on GitHub (Feb 1, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/634

Describe the bug
After some time, in some cases, a Whoogle search leads to an empty search page.

To Reproduce
Steps to reproduce the behavior:

  1. Search (though it's unreliable)
  2. See blank page

Deployment Method

  • Heroku (one-click deploy)
  • Docker
  • run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version [version number]
  • Not sure

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: firefox
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
image

Originally created by @DUOLabs333 on GitHub (Feb 1, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/634 **Describe the bug** After some time, in some cases, a Whoogle search leads to an empty search page. **To Reproduce** Steps to reproduce the behavior: 1. Search (though it's unreliable) 2. See blank page **Deployment Method** - [ ] Heroku (one-click deploy) - [ ] Docker - [x] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [x] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [ ] Version [version number] - [ ] Not sure **Desktop (please complete the following information):** - OS: Arch Linux - Browser: firefox - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here. ![image](https://user-images.githubusercontent.com/49244768/151896281-d4548366-6eb3-4843-9198-32c99e071e18.png)
kerem 2026-02-25 20:35:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@bruvv commented on GitHub (Feb 1, 2022):

Log files are essential to debug this....

<!-- gh-comment-id:1027262522 --> @bruvv commented on GitHub (Feb 1, 2022): Log files are essential to debug this....
Author
Owner

@DUOLabs333 commented on GitHub (Feb 1, 2022):

Whoogle doesn't output anything.

<!-- gh-comment-id:1027264158 --> @DUOLabs333 commented on GitHub (Feb 1, 2022): Whoogle doesn't output anything.
Author
Owner

@ghost commented on GitHub (Feb 1, 2022):

I've seen this too, on 0.7.1 and also on 0.7.0 (Arch Linux, same whoogle setup). Removing WHOOGLE_MINIMAL=1 from whoogle.env (or setting WHOOGLE_MINIMAL=0) fixes this for me. Perhaps google changed something in those 'People also ask' cards that needs adjusting?

<!-- gh-comment-id:1027298791 --> @ghost commented on GitHub (Feb 1, 2022): I've seen this too, on 0.7.1 and also on 0.7.0 (Arch Linux, same whoogle setup). Removing `WHOOGLE_MINIMAL=1` from whoogle.env (or setting `WHOOGLE_MINIMAL=0`) fixes this for me. Perhaps google changed something in those 'People also ask' cards that needs adjusting?
Author
Owner

@benbusby commented on GitHub (Feb 1, 2022):

Yep, looks like WHOOGLE_MINIMAL no longer works due to some behind the scenes changes to search result formatting.

Edit: I'd be cautious about any fix at this point actually. It seems like they're doing A/B testing with how they format search results, so a fix for one response body might not work for the other and vice versa. I'm getting 50/50 odds of receiving a weird left-aligned search result response w/o div backgrounds vs the usual center-aligned results.

<!-- gh-comment-id:1027357505 --> @benbusby commented on GitHub (Feb 1, 2022): Yep, looks like `WHOOGLE_MINIMAL` no longer works due to some behind the scenes changes to search result formatting. Edit: I'd be cautious about any fix at this point actually. It seems like they're doing A/B testing with how they format search results, so a fix for one response body might not work for the other and vice versa. I'm getting 50/50 odds of receiving a weird left-aligned search result response w/o div backgrounds vs the usual center-aligned results.
Author
Owner

@DUOLabs333 commented on GitHub (Feb 1, 2022):

Oh, foo -- I really liked WHOOGLE_MINIMAL too.

<!-- gh-comment-id:1027378097 --> @DUOLabs333 commented on GitHub (Feb 1, 2022): Oh, foo -- I really liked `WHOOGLE_MINIMAL` too.
Author
Owner

@DUOLabs333 commented on GitHub (Feb 1, 2022):

Also, side note -- body {max-width: 100% !important; /* or whatever width you want */} doesn't work anymore -- it's right aligned now.

<!-- gh-comment-id:1027401859 --> @DUOLabs333 commented on GitHub (Feb 1, 2022): Also, side note -- `body {max-width: 100% !important; /* or whatever width you want */}` doesn't work anymore -- it's right aligned now.
Author
Owner

@benbusby commented on GitHub (Feb 2, 2022):

Yeah, likely related to the new result formatting that they're applying. I've noticed some styles are being forced as !important, which overrides styles that Whoogle applies (even with !important). I'm going to keep an eye on what gets changed in the next few days. Over the course of the day I've noticed that my prior 50/50 odds of getting their new result format have gone up to almost 100% new formatted results, so this might be a permanent change. I just pushed 9ba73331aa, which should eliminate some of the weird white box-shadow elements I was seeing, which looked really bad for dark themes in particular.

<!-- gh-comment-id:1027428051 --> @benbusby commented on GitHub (Feb 2, 2022): Yeah, likely related to the new result formatting that they're applying. I've noticed some styles are being forced as `!important`, which overrides styles that Whoogle applies (even with `!important`). I'm going to keep an eye on what gets changed in the next few days. Over the course of the day I've noticed that my prior 50/50 odds of getting their new result format have gone up to almost 100% new formatted results, so this might be a permanent change. I just pushed 9ba73331aad9311d839e23a4e90a0cb4546c9716, which should eliminate some of the weird white box-shadow elements I was seeing, which looked really bad for dark themes in particular.
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

I'm trying out a way to fix MINIMAL -- in collapse_sections, is there a way to remove a section? Just setting result_children=[] just causes a blank page.

<!-- gh-comment-id:1027434886 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): I'm trying out a way to fix `MINIMAL` -- in `collapse_sections`, is there a way to remove a section? Just setting `result_children=[]` just causes a blank page.
Author
Owner

@benbusby commented on GitHub (Feb 2, 2022):

If the section is a BS4 element, then you can call decompose() on that element (i.e. elem.decompose()).

<!-- gh-comment-id:1027443421 --> @benbusby commented on GitHub (Feb 2, 2022): If the section is a BS4 element, then you can call `decompose()` on that element (i.e. `elem.decompose()`).
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

I got something that basically works -- it should work with both types of response bodies.

<!-- gh-comment-id:1027471445 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): I got something that basically works -- it should work with both types of response bodies.
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

When you remove a section, a line is left behind -- it there a way to remove that?

image

<!-- gh-comment-id:1027473227 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): When you remove a section, a line is left behind -- it there a way to remove that? ![image](https://user-images.githubusercontent.com/49244768/152076842-94dc8a29-c06d-464f-9f5c-a6ea528c29f8.png)
Author
Owner

@benbusby commented on GitHub (Feb 2, 2022):

Hmm, I'm not sure really. I'm assuming it's leftover css, like a border being applied to an empty div (or something along those lines). Maybe for whatever section you're removing, it would be more accurate to remove its immediate parent element instead?

<!-- gh-comment-id:1027475083 --> @benbusby commented on GitHub (Feb 2, 2022): Hmm, I'm not sure really. I'm assuming it's leftover css, like a border being applied to an empty div (or something along those lines). Maybe for whatever section you're removing, it would be more accurate to remove its immediate parent element instead?
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

I removed the "Top stories" section, how would I remove the parent element?

<!-- gh-comment-id:1027476740 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): I removed the "Top stories" section, how would I remove the parent element?
Author
Owner

@benbusby commented on GitHub (Feb 2, 2022):

By calling <elem>.parent.decompose() instead of just decompose(), although I can't promise that's the solution, just a hunch.

<!-- gh-comment-id:1027478663 --> @benbusby commented on GitHub (Feb 2, 2022): By calling `<elem>.parent.decompose()` instead of just `decompose()`, although I can't promise that's the solution, just a hunch.
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

Oh, I got it to work: I just called result.decompose()

<!-- gh-comment-id:1027479990 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): Oh, I got it to work: I just called `result.decompose()`
Author
Owner

@DUOLabs333 commented on GitHub (Feb 2, 2022):

I'll make a pull request soon.

<!-- gh-comment-id:1027480143 --> @DUOLabs333 commented on GitHub (Feb 2, 2022): I'll make a pull request soon.
Author
Owner

@ghost commented on GitHub (Feb 2, 2022):

Confirming #637 fixes WHOOGLE_MINIMAL=1 here.

<!-- gh-comment-id:1027631574 --> @ghost commented on GitHub (Feb 2, 2022): Confirming #637 fixes `WHOOGLE_MINIMAL=1` here.
Author
Owner

@servietos commented on GitHub (Jan 16, 2025):

Hello thank you for that great application. However I'm on v0.9.1 and got an empty search result but only at 'All'. Images, Maps, Video and News deliver results. I'm using Whoogle as a docker container and re-installed it freshly with the same behavior.
May you've any idea, please?

Image

<!-- gh-comment-id:2595813689 --> @servietos commented on GitHub (Jan 16, 2025): Hello thank you for that great application. However I'm on v0.9.1 and got an empty search result but only at 'All'. Images, Maps, Video and News deliver results. I'm using Whoogle as a docker container and re-installed it freshly with the same behavior. May you've any idea, please? ![Image](https://github.com/user-attachments/assets/2f90b27e-a13a-4abb-b57e-d6bdd21fca62)
Author
Owner

@bruvv commented on GitHub (Jan 16, 2025):

@servietos https://github.com/benbusby/whoogle-search/issues/1211 please do not comment on closed issues if there are open issues.

<!-- gh-comment-id:2595823057 --> @bruvv commented on GitHub (Jan 16, 2025): @servietos https://github.com/benbusby/whoogle-search/issues/1211 please do not comment on closed issues if there are open issues.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#401
No description provided.