Skip to content

Commit

Permalink
Merge pull request #127 from kevindaffaarr/master
Browse files Browse the repository at this point in the history
Strip aif production iframe
  • Loading branch information
leoncvlt authored Jan 1, 2023
2 parents 759697a + 05bc92c commit 58a118c
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 58a118c

Please sign in to comment.