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

View File

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