From c7af8d53a99fbbf1bda453a9ee1293bfb7ac6cf4 Mon Sep 17 00:00:00 2001 From: Tobi Saputra Date: Tue, 3 Jun 2025 17:15:50 +0700 Subject: [PATCH] fix: removing cookie options on tiktok stalk user --- README.md | 2 +- src/utils/get/getProfile.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 28f24f6..047cded 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ tiktokdl search video -p 1 -proxy "http://your-proxy-url" const Tiktok = require("@tobyg74/tiktok-api-dl") const username = "Tobz2k19" -Tiktok.Stalker(username, { +Tiktok.StalkUser(username, { proxy: "YOUR_PROXY" // optional }).then((result) => console.log(result)) ``` diff --git a/src/utils/get/getProfile.ts b/src/utils/get/getProfile.ts index b8f04e9..b5e58da 100644 --- a/src/utils/get/getProfile.ts +++ b/src/utils/get/getProfile.ts @@ -23,7 +23,6 @@ import { SocksProxyAgent } from "socks-proxy-agent" export const StalkUser = ( username: string, - cookie?: string | any[], proxy?: string ): Promise => new Promise(async (resolve) => { @@ -31,10 +30,6 @@ export const StalkUser = ( Axios(`${_tiktokurl}/@${username}`, { method: "GET", headers: { - cookie: - typeof cookie === "object" - ? cookie.map((v: any) => `${v.name}=${v.value}`).join("; ") - : cookie, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36" },