Merge pull request #127 from kevindaffaarr/master

Strip aif production iframe
This commit is contained in:
Leonardo Cavaletti 2023-01-01 14:30:07 +00:00 committed by GitHub
commit 58a118c615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,6 +380,8 @@ class Parser:
# remove scripts and other tags we don't want / need # remove scripts and other tags we don't want / need
for unwanted in soup.findAll("script"): for unwanted in soup.findAll("script"):
unwanted.decompose() 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"}): for intercom_frame in soup.findAll("iframe", {"id": "intercom-frame"}):
intercom_frame.decompose() intercom_frame.decompose()
for intercom_div in soup.findAll("div", {"class": "intercom-lightweight-app"}): for intercom_div in soup.findAll("div", {"class": "intercom-lightweight-app"}):