Removing google's filter card from results

main
Ben Busby 2020-05-24 12:53:21 -06:00
parent 09c53b52af
commit 3dbe51e9e7
1 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,11 @@ class Filter:
for script in soup('script'): for script in soup('script'):
script.decompose() 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') footer = soup.find('div', id='sfooter')
if footer is not None: if footer is not None:
footer.decompose() footer.decompose()