Skip to content

Commit

Permalink
Strip aif production iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindaffaarr committed Dec 30, 2022
1 parent 759697a commit 05bc92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loconotion/modules/notionparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def clean_up(self, soup):
# 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"}):
Expand Down

0 comments on commit 05bc92c

Please sign in to comment.