This commit is contained in:
2025-05-11 18:58:43 +02:00
parent d5a73f342e
commit f3f3045ebf
48 changed files with 686 additions and 243 deletions

View File

@@ -10,20 +10,20 @@ class KakaoRequest:
def get_episode_headers(self, ant):
return {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zht",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Accept-Language": "ko",
"Cache-Control": "no-cache",
"Cookie": f"theme=dark; _kp_collector={self.app_id}; atn={ant}",
"Dnt": "1",
"Origin": "https://tw.kakaowebtoon.com",
"Origin": "https://webtoon.kakao.com/",
"Pragma": "no-cache",
"Referer": "https://tw.kakaowebtoon.com/",
"Referer": "https://webtoon.kakao.com/",
"Sec-Ch-Ua": '"Not A(Brand";v="99", "Microsoft Edge";v="121", "Chromium";v="121"',
"Sec-Ch-Ua-Mobile": "?0",
"Sec-Ch-Ua-Platform": '"Windows"',
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-site",
"Sec-Fetch-Dest": "script",
"Sec-Fetch-Mode": "no-cors",
"Sec-Fetch-Site": "cross-site",
"Sec-Gpc": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
}