diff --git a/privacy_policy_tnt_maroc.html b/privacy_policy_tnt_maroc.html index 294e7ce..b9804df 100644 --- a/privacy_policy_tnt_maroc.html +++ b/privacy_policy_tnt_maroc.html @@ -17,7 +17,9 @@ const response = await fetch("https://corsproxy.io/?https://callofliberty.fr/tv/1-TF1/1-TF1.php?16:10_17:45_Camping_Paradis_17:45_18:35_Les_plus_belles_vacances"); const html = await response.text(); console.log(html); - var scripts = document.getElementsByTagName('script'); + var parser = new DOMParser(); + var doc = parser.parseFromString(html, "text/html"); + var scripts = doc.querySelectorAll('script'); var lastScript = scripts[scripts.length - 1]; console.log(lastScript);