Update the intercom html tag pointer

The intercom tag is an iframe, not a div.
This commit is contained in:
Douglas Jarquin 2021-07-07 00:18:55 -04:00 committed by GitHub
parent d0b4dbf76d
commit bcf2a02b28
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()