From 05bc92c3d59d7002c836504b9b9ff6597d7d4571 Mon Sep 17 00:00:00 2001 From: kevindaffaarr Date: Sat, 31 Dec 2022 04:09:20 +0700 Subject: [PATCH] Strip aif production iframe --- loconotion/modules/notionparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loconotion/modules/notionparser.py b/loconotion/modules/notionparser.py index 2d6a65381..4fccf6518 100644 --- a/loconotion/modules/notionparser.py +++ b/loconotion/modules/notionparser.py @@ -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"}):