This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
destroySession, | |
freeMemory, | |
getCookiesFromSession, request, | |
requestWithAutoHeaderOrder, | |
SEC_CH_UA, | |
USER_AGENT | |
} from "../http.js"; | |
import {parseChallengeHTML} from "hyper-sdk-js/akamai/sec_cpt.js"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from typing import Optional | |
from urllib.parse import urlparse | |
from tls_client import Session | |
from tls_client.response import Response | |
from hyper_sdk.akamai import SecCptChallenge | |
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"fmt" | |
"github.com/Hyper-Solutions/hyper-sdk-go/akamai" | |
customHttp "github.com/bogdanfinn/fhttp" | |
tls_client "github.com/bogdanfinn/tls-client" | |
"github.com/bogdanfinn/tls-client/profiles" | |
"io" |