Strip aif production iframe

This commit is contained in:
kevindaffaarr 2022-12-31 04:09:20 +07:00
parent 759697ade3
commit 05bc92c3d5

View File

@ -380,6 +380,8 @@ class Parser:
# remove scripts and other tags we don't want / need
for unwanted in soup.findAll("script"):
unwanted.decompose()
for aif_production in soup.findAll("iframe", {"src": "https://aif.notion.so/aif-production.html"}):
aif_production.decompose()
for intercom_frame in soup.findAll("iframe", {"id": "intercom-frame"}):
intercom_frame.decompose()
for intercom_div in soup.findAll("div", {"class": "intercom-lightweight-app"}):