Skip to content

Commit

Permalink
Update privacy_policy_tnt_maroc.html
Browse files Browse the repository at this point in the history
  • Loading branch information
itech-apps authored Aug 13, 2024
1 parent 6ef20ad commit a31302d
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions privacy_policy_tnt_maroc.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Privacy Policy</title>
<style> body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:1em; } </style>
</head>
<body>

<script>
window.addEventListener("load", () => {
console.log("This function is executed once the page is full loaded");
});
async function scrapeData() {


try {
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();

var parser = new DOMParser();
var doc = parser.parseFromString(html, "text/html");
var scripts = doc.querySelectorAll('script');
var lastScript = scripts[scripts.length - 2];
console.log(lastScript);
var str = lastScript.split("'")
console.log(str);
var inputString = scripts[scripts.length - 2];
console.log(inputString);
console.log(inputString.outerHTML);
// to find the index of the start character
var startIndex = inputString.outerHTML.indexOf("source: ") + 9;
console.log(startIndex);
// to find the the index of the end character after the start character
var endIndex = inputString.outerHTML.indexOf("poster:") - 28;
console.log(endIndex);
// check if both start and end characters are found
if (startIndex != -1 && endIndex != -1) {
// extract the substring between the start and end characters
var result = inputString.outerHTML.substring((startIndex), endIndex);

// print the result
console.log(result);
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}
var encodedString = Base64.encode(result);

document.write(encodedString);
console.log(encodedString);


} else {
console.log("Not found");
}

} catch (error) {
console.log(error);
Expand Down

0 comments on commit a31302d

Please sign in to comment.