Merge pull request #66 from douglasjarquin/patch-1

Update the intercom html tag pointer
This commit is contained in:
Leonardo Cavaletti 2021-07-17 17:26:14 +01:00 committed by GitHub
commit acb1f9b9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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