Removing google's filter card from results
parent
09c53b52af
commit
3dbe51e9e7
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue