From 3dbe51e9e7b4fe7a140ecf286007130d595a5302 Mon Sep 17 00:00:00 2001 From: Ben Busby <33362396+benbusby@users.noreply.github.com> Date: Sun, 24 May 2020 12:53:21 -0600 Subject: [PATCH] Removing google's filter card from results --- app/filter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/filter.py b/app/filter.py index 5e5ec01..5c9ce2e 100644 --- a/app/filter.py +++ b/app/filter.py @@ -90,6 +90,11 @@ class Filter: for script in soup('script'): script.decompose() + # Remove google's language/time config + st_card = soup.find('div', id='st-card') + if st_card: + st_card.decompose() + footer = soup.find('div', id='sfooter') if footer is not None: footer.decompose()