fix: removing cookie options on tiktok stalk user

This commit is contained in:
Tobi Saputra 2025-06-03 17:15:50 +07:00
parent c83e329f27
commit c7af8d53a9
2 changed files with 1 additions and 6 deletions

View File

@ -258,7 +258,7 @@ tiktokdl search video <query> -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))
```

View File

@ -23,7 +23,6 @@ import { SocksProxyAgent } from "socks-proxy-agent"
export const StalkUser = (
username: string,
cookie?: string | any[],
proxy?: string
): Promise<TiktokStalkUserResponse> =>
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"
},